Skip to Content

Light Ambient Sensor Module GY-302 BH1750

The BH1750 GY-302 is a highly precise digital light sensor designed to measure ambient light with excellent accuracy. It communicates using the I2C protocol, allowing easy integration with microcontrollers like Arduino and Raspberry Pi. Its wide measurement range from 1 to 65535 lux (lx) makes it ideal for applications requiring accurate light intensity readings such as automatic lighting, environmental monitoring, and smart home projects.

A key feature of the BH1750 sensor is its ability to convert ambient light directly into a digital signal, removing the need for analog-to-digital conversion. It has low power consumption and power-saving features, making it well-suited for battery-powered devices. The sensor also exhibits minimal sensitivity to infrared light and variations in light source, ensuring

Package Includes

  • 1 x BH1750 GY-302 Digital Light Sensor Module
  • 1 x Set of Header Pins (may require soldering)

 

24.00 AED 24.00 AED Tax Included
24.00 AED Tax Included

Not Available For Sale

This combination does not exist.

Terms and Conditions
30-day money-back guarantee
Shipping: 2-3 Business Days

 

Features

  • I2C Protocol Interface: Simple and fast two-wire communication
  • Ambient Light to Digital Converter: Direct digital output of light intensity
  • High Resolution: Measures light levels from 1 to 65535 lux
  • Low Power Consumption: Includes power-saving mode
  • Noise Rejection: Reduces 50Hz/60Hz light noise effectively
  • 1.8V Logic Compatible: Works with lower voltage logic systems
  • No External Components Needed: Simplifies circuit design
  • Minimal Light Source Dependency: Stable readings under different lighting
  • Multiple I2C Addresses: Supports 0x23 and 0x5C
  • Small Measurement Variation: Accuracy within ±20%
  • Low Infrared Influence: IR light minimally affects readings

Specifications

  • Supply Voltage: 3.3V to 5V
  • Measurement Range: 1 to 65535 lx
  • Interface: I2C (SDA, SCL)
  • Power Consumption: 0.12mA (typical)
  • Logic Level: 1.8V Compatible
  • Measurement Accuracy: ±20%
  • Two I2C Addresses: 0x23 (ADDR = LOW) or 0x5C (ADDR = HIGH)
  • Dimensions: 18mm x 14mm

Pinout Configuration

BH1750 Light Sensor Pinout, Features & Datasheet

Pin Description
ADDR I2C Device Address Selection: 0x23 (LOW) or 0x5C (HIGH)
SDA I2C Data Line
SCL I2C Clock Line
GND Ground
VCC 3.3V to 5V Power Supply

Library Download

To use the BH1750 with Arduino, install its library from the Arduino Library Manager or GitHub.

Download BH1750 Library

Wiring Connections with Arduino

BH1750 Pin Arduino Pin
VCC 3.3V or 5V
GND GND
SDA A4 (default I2C SDA)
SCL A5 (default I2C SCL)

Check your specific Arduino board’s I2C pins if different.

Wiring Diagram

GY-302 BH1750 Digital Light Intensity Module - Wiki

Arduino Code for BH1750 GY-302 Light Sensor

#include "Wire.h"
#include "BH1750.h"

BH1750 lightMeter;

void setup() {
  Serial.begin(9600);
  Wire.begin();
  lightMeter.begin();
}

void loop() {
  uint16_t lux = lightMeter.readLightLevel();
  Serial.print("Light Level: ");
  Serial.print(lux);
  Serial.println(" lx");
  delay(1000);
}

How This Code Works:

  • Wire.begin() initializes I2C communication.
  • lightMeter.begin() starts the BH1750 sensor.
  • readLightLevel() reads ambient light intensity in lux.
  • Sensor readings are printed every second to the Serial Monitor.