Environmental detection and remediation