Getting Room Light Level

Getting Room Light Level

This Project will Demonstrate you how to check your Surronding Light Level on Arduino Serial Monitor.

Hardware Required:

1x Arduino Uno

1x LDR

1x 10K Resistor

1x Bread board & some Jumpire Wires M-M

Want to Buy Complete Kit Click Here

Arduino Pin Layout:

Code:

/*
* OR97 Arduino Maker Basic Kit
* Project#4 Getting Room Light Level..
* Made By: OR97 Team
* Kit Link=https://www.or97.com/arduino-maker-basic-kit
*/

int sensorPin = A0; // select the input pin for ldr
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600); //sets serial port for communication
}
void loop() {
sensorValue = analogRead(sensorPin); // read the value from the sensor
Serial.println(sensorValue); //prints the values coming from the sensor on the screen
delay(300);
}

OUTPUT:

After Upload Code to Arduino Click on Tools->Serial Monitor to see the Value or you can Also see it’s Graph by Clicking Tools->Serial Plotter


All Categories

  • All Categories
  • Uncategorized
  • IoT Development Boards
  • Raspberry Pi
  • Arduino Boards
  • Arduino Shields
  • Temperature & Humidity
  • Sensors & Modules
  • Servo & DC Motors
  • Robtics Modules & Parts
  • Relay Modules
  • DIY KIt & Sensor Packs
  • RFID & NFC
  • Communications Modules
  • LCD Display
  • MQ Gas Sensors Modules
  • LED & Diodes
  • Jumper Wires & Other Stuff
  • PC Accessories
  • 3D Printer
  •    3D Printer Parts
  • Quad Copter
  •    Flight Controller
  •    HJ F450 QuadCopter
  •    FQ-7777 Quad Copter
  • Smart Home
  • Lorawan
  •    Lorawan Gateway & Boards
  • PyCOM
  • AI/ML
  • Basic Electronics Componenets
  • Basic Electronics Tools
  • Industrial Components
  • Power Supply & Chargers