05# Arduino Visual Programming | How to use the LDR (photoresistor) | XOD

How to use the LDR for measure an ambient light level. A photoresistor (light dependent resistor or LDR) would do a great job of measuring the parameter. A photoresistor is a pretty primitive device, and all we need to do is read its value from the analog port on the Arduino. We will measure a lightness level, and if the values exceed or are below the threshold, we will turn an LED on or off. Cover the photoresistor (the LDR) with your hand, and watch how the activate of the LED. Required Hardware Any Arduino Board Arduino Uno -- https://goo.gl/RcRmi1 Arduino Nano -- https://goo.gl/h6nzyC Arduino Mega -- https://goo.gl/PfP5p7 LDR (Photo resistor) -- https://goo.gl/1XKPuX LED Kit Set -- https://goo.gl/uKJ5XX Resistor Set -- https://goo.gl/uSYHGx Breadboard -- https://goo.gl/ExxNWy Jumper Wires -- https://goo.gl/EGTafY Arduino Basic Starter Kit -- https://goo.gl/ZJ6jxV 2018 New Year Promotion -- https://goo.gl/dxQkWE ---------------------------------------------------------------- For the first tutorial you can watch the following video. https://youtu.be/zgu2ID9fzp8 ---------------------------------------------------------------- You can share any technical problem at https://forum.xod.io/. The team of XOD developers will respond to you very quickly and more accurately. XOD Official -- https://xod.io/ XOD Community -- https://forum.xod.io/. ---------------------------------------------------------------- Song: Fredji - Flying High (Vlog No Copyright Music) Music provided by Vlog No Copyright Music. Video Link: https://youtu.be/ueOi5slIU2E