this is how i have connected
i am using your sketch for indoor plant monitoring but have modified the sleep time to one hour . the problem i am facing is that every alternate humidity reading i get is a 0
first reading ------ 67%
second reading ----- 0%
third reading ------65%
fourth reading ------- 0%
i am using a electrodragon Photocell Light-Sensitive Module http://www.electrodragon.com/product/photoresistor-light-sensitive-module/
and using the light sensor sketch which comes in the examples of Mysensors
i am using domoticz controller on a raspberry pi.
the sketch runs fine and the arduino serial monitor shows that ldr is giving proper output to domoticz controller but for the reading display on domoticz are ok for the first few times and then it gives random output readings
the arduino serial monitor is showing that the ldr is giving proper output all the time but somehow domoticz is not able to read it.