Python Code for Environmental Monitoring