Arduino Projects: Difference between revisions

m
Line 160:
</pre>
 
== LDRLight Controlled Relay Switch ==
[[File:LDR Relay bb.png|thumb|right|ConnectionsLDR Relay Switch]]
<pre style="width: 75%; height: 10pc; overflow-y: scroll;">int sensorPin = A0; // select the input pin for ldr
int sensorValue = 0; // variable to store the value coming from the sensor