GY-302 BH1750 light sensor board at an angle, BH1750 sensor chip on the blue PCB with the loose 5-pin header beside it

BH1750 GY-302 Light Sensor Module - Digital Lux, I2C, 3V to 5V

$4.29 NZD
Save 6% at 3+
Skip to product information
SKU: MOD-BH1750-GY302

BH1750 GY-302 Light Sensor Module - Digital Lux, I2C, 3V to 5V

$4.29 NZD
Availability:
Order before 7:30am for same-day dispatch 7-day dispatch, excluding public holidays

NZ Post: 1-2 days urban · 2-4 days rural

Shipping from $5.99 urban / $9.99 rural.

Buy more, pay less Prices shown are per unit. Add enough of this item and the lower rate applies on its own at checkout. There is no code to enter and you do not need to buy a pack. Choosing a tier here just sets the quantity for you. Larger quantities go out in the same bag, so packing, handling and postage cost us less per unit. We pass that saving straight on to you, so you can buy more for less.

Easy 30-day returns · 12-month warranty

Free Urban delivery on orders over $66
Urban $66 Rural $88

A GY-302 light sensor board fitted with the BH1750 digital ambient light sensor, for measuring light levels in lux from an Arduino, ESP32 or Raspberry Pi. It runs from 3V to 5V, talks over I2C and gives a reading straight in lux from 1 to 65535, so there is no analogue maths or calibration to do. For direct sunlight or a wider range, see our VEML7700 ambient light sensor.

Specifications

Sensor chipBH1750FVI digital light sensor
Supply (VCC)3V to 5V, onboard 3.3V regulator
Works with5V Arduino and 3.3V ESP32, Pi
InterfaceI2C, address 0x23 or 0x5C
Range1 to 65535 lux, 1 lux steps
ResponseClose to the human eye, peak 560 nm
Reading time120 ms high resolution, 16 ms fast
PinsVCC, GND, SCL, SDA, ADDR
Board size18.5 x 13.9 mm, two 3 mm holes

Datasheets

What's in the box

1×
GY-302 BH1750 light sensor board

Ships with a 5-pin 2.54 mm male header, loose and ready to solder. Jumper wires and the microcontroller are not included.

Great for

Turn on lights or a display backlight when the room gets dark
Log daylight levels in a greenhouse or shed
Check grow light or desk lamp brightness in lux
Close blinds or curtains when the sun gets strong
Add a light reading to an ESP32 weather station
Learn I2C sensors on an Arduino or ESP32

Wiring & getting started

  1. Solder the header

    Push the short ends of the 5-pin header through the board from the back, so the sensor faces up, and solder all five pins on the component side.

  2. Wire four pins

    VCC to 5V on an Uno or Nano, or 3V3 on an ESP32. GND to GND. SCL to A5 and SDA to A4 on an Uno or Nano, or GPIO22 and GPIO21 on an ESP32. Leave ADDR unconnected for address 0x23.

  3. Run the test sketch

    The datasheet has a short sketch that needs no library. Upload it and open the Serial Monitor at 115200 baud. It prints BH1750 found, then a reading in lux every second.

  4. Check it responds

    Cover the sensor with a finger and the reading drops towards 0. Shine a torch on it and it climbs.

Note: To use address 0x5C, connect ADDR to 3.3V, not 5V. The sensor chip runs at 3.3V from the onboard regulator, so ADDR must not go above 3.3V.

Frequently Asked Questions

Answers to the questions buyers ask most.

Will it work with a 5V Arduino Uno or a 3.3V ESP32?
Yes, both. VCC takes 3V to 5V and an onboard 3.3V regulator powers the sensor chip. Power it from the same voltage as your board's I/O: 5V on an Uno, Nano or Mega, 3.3V on an ESP32 or Raspberry Pi.
What I2C address does it use?
0x23 with ADDR left unconnected or tied to GND, and 0x5C with ADDR connected to 3.3V. Use 3.3V for ADDR even on a 5V Arduino, because the sensor chip runs at 3.3V. Setting one board to each address lets two share the same I2C bus.
Do I need a library?
No. The test sketch in the datasheet uses only the built-in Wire library. If you prefer a driver, install BH1750 by Christopher Laws from the Arduino Library Manager and call Wire.begin() before lightMeter.begin().
Can it measure direct sunlight outdoors?
At its default setting the reading tops out at about 54,600 lux, and direct sun can be brighter than that. Lowering the sensitivity register (MTreg) to 31 extends it to about 100,000 lux, as shown in the datasheet. For a simpler outdoor setup our VEML7700 covers a wider range. The board is not weatherproof, so outdoors it needs a clear cover.
Does it give readings in lux?
Yes. The sensor outputs a 16-bit value that you divide by 1.2 to get lux, and the libraries do that for you. It responds to visible light much like the human eye, so it suits room, desk and daylight levels rather than UV or infrared.
How accurate is it?
Good for comparing light levels and switching at a set point. The chip's own rating allows readings to vary by up to about 20% from one sensor to the next, so if you need an exact lux figure, compare it once against a light meter and apply a correction factor.
Do I need to solder anything?
Yes. The 5-pin header comes loose in the bag, so solder it to the board or solder wires straight to the pads.

Have a Question About This Product?

Send it through and we will get back to you by email.

Why Buy from NZN

Useful parts, fair prices and someone local to help.

I'm Lukas, an engineering student and maker based in Te Awamutu. NZN grew out of a CNC build that dragged on for months because every missing cable, bolt or electronic part meant another overseas order. I started the shop so Kiwi makers can spend more time building and less time waiting for the next parcel.

  • Stocked here in New Zealand

    Orders are picked and packed in Te Awamutu and dispatched within 24 hours every day, excluding public holidays. NZ Post target delivery is 1-2 days urban and 2-4 days rural. In Te Awamutu and Kihikihi you can choose local delivery at checkout: same day if you order before 8am, otherwise next day.

  • Fair prices, clearly shown

    Prices are kept competitive and quantity discounts are shown upfront. Free delivery starts at $66 for urban addresses and $88 for rural addresses.

  • 30-day returns and 12-month warranty

    Get in touch if something is not right and we will help sort it.

  • Practical product support

    Ask a product question and get help from a real person in New Zealand who knows the range.

You may also like