Code for my environmental sensor project