I would also say the delay(10000) is in the wrong place. Take reading, wait 10 sec, turn on/off LED. Would it not be better to take reading, turn LED on/off, wait 10 sec?
I would also say the delay(10000) is in the wrong place. Take reading, wait 10 sec, turn on/off LED. Would it not be better to take reading, turn LED on/off, wait 10 sec?