added code for temperature humidity and light sensor reading