This is the code used in a Custom Sensor Package for Environmental Monitoring