new version of the sensor code that works with the PIR, temp. light and volt sensors