Project tutorial
Measure LUX with Arduino Using BH1750

Measure LUX with Arduino Using BH1750 © GPL3+

Measure your light intensity lux using this sensor and simple code.

  • 14,692 views
  • 0 comments
  • 5 respects

Components and supplies

A000066 iso both
Arduino UNO
×1
Adafruit bh1750 lux sensor
×1

Apps and online services

About this project

If you are looking to test a lux value of light with Arduino, then this project is suitable for you its easy and cool! Just connect the BH1750 module, upload the code, and run the serial monitor.

Code

codeC/C++
#include <Wire.h>
#include <BH1750.h>
 
 
BH1750 lightMeter;
 
 
void setup(){
  Serial.begin(9600);
  lightMeter.begin();
  Serial.println("Running...");
}
 
 
void loop() {
  uint16_t lux = lightMeter.readLightLevel();
  Serial.print("Light: ");
  Serial.print(lux);
  Serial.println(" lx");
  delay(1000);
}

Custom parts and enclosures

bh1750-master_IkmI0RZbUo.zip
bh1750-master_IkmI0RZbUo.zip

Schematics

lux_qo4Ni002ya.jpg
Lux qo4ni002ya
connections
Modulo i2c bh1750 sensor de luz ideal arduino pic etc 625 mec3740317867 012013 o jfsda1p85n

Comments

Similar projects you might like

BMP280: Measure Temperature, Pressure and Altitude

Project tutorial by SurtrTech

  • 22,430 views
  • 9 comments
  • 46 respects

Relay_PIR_Timer

by berlopdia

  • 5,100 views
  • 5 comments
  • 29 respects

Up to Three RS485 Busses on One Arduino

Project tutorial by hwhardsoft

  • 3,805 views
  • 0 comments
  • 6 respects

Sqlite µLogger

Project tutorial by arundale

  • 859 views
  • 1 comment
  • 6 respects

How to Measure Air Quality on OpenSensors

Project tutorial by OpenSensors.io

  • 16,599 views
  • 8 comments
  • 61 respects

Control Home Appliances Through Web Or Mobile

Project tutorial by Team Gadget Programmers

  • 10,635 views
  • 5 comments
  • 22 respects
Add projectSign up / Login