I am using a TEMT6000 LDR and a PIR to turn on outdoor lighting, well that's the plan. The LDR and PIR are in the same housing, and after some searching on forums, I found that I can combine the V-wires and G-wires from the PIR and LDR. So my wiring to the board is 2x signal, V and G.
If I don't combine them I need two extra wires. However, I am not really sure this is 'allowed' and/or will mess up my signals? So that would be the first question...
The second one has to do with the LDR reading: Prior to combining the V and G wires as mentioned in the first question, I had the sensors on a breadboard. The reading from the LDR (in low lights?) seems to be pretty unstable, ranging from 0-50 with only light noise from outside. I tried to overcome that by measuring at two intervals of 10 seconds, store these values and divide them by two to get a more balanced reading. Theory was fine but when both measurements are 0, the lights go on... the next reading, 5 seconds later, one of them is 50 and the average is 25... so lights are out again. Is there a way to get a more precise reading from the LDR?
Thanks!
Edit: In the sensor housing, 2 meters away from the board I have the LDR and PIR connected like this:
simulate this circuit – Schematic created using CircuitLab