BH1750 Pre-Soldered Digital Light Sensor for Arduino & Raspberry Pi

SKU 3O-WETZ-7FUE

$6.98 USD Shipping & tax calculated at checkout
In stock· Order by 3pm ET and it ships today

I2C lux sensor for Arduino and Raspberry Pi that provides accurate digital light readings for automation and monitoring.

Bulk eligible

Mix any Bulk eligible products — discount applies to your total quantity across the cart.
Auto-applied at checkout
Buy 5+ $6.63 each Save 5%
Buy 10+ $6.28 each Save 10%
View all bulk eligible products →
  • Free Ground Shipping U.S. orders $35+
  • Ships from USA Worldwide via DHL
  • 30-day returns Free defect replacement
  • 7-day support Fast email replies
Frequently bought together
Close-up of ShillehTek BH1750 digital light sensor pre-soldered module pins BH1750 Pre-Soldered Digital Light Sensor for Arduino & Raspberry Pi ★★★★★ (27) $6.98 This item
Total for 4 items
$43.35

Products related to this item

Product Overview

The ShillehTek BH1750 Digital Light Sensor measures ambient light intensity as a digital lux reading, making it perfect for Arduino and Raspberry Pi projects that need accurate light data without messy analog calibration. It communicates over I2C, so wiring is simple and libraries are widely available. Use it for smart lighting, automatic dimming, plant grow monitoring, daylight detection, security lighting triggers, and any build where you want consistent, real-world light measurements.

The GY-302 breakout reads 1 to 65,535 lux with 16-bit resolution, far beyond what an LDR voltage divider can deliver, and returns calibrated lux values directly over I2C. The address pin lets you select between 0x23 and 0x5C so two sensors can share one bus, and the board works with both 3.3 V and 5 V systems. With the header pre-soldered by ShillehTek, it is breadboard-ready out of the bag.

Frequently asked questions

The BH1750 communicates over I2C, so it is commonly used with Arduino and Raspberry Pi boards that have available I2C pins and compatible software libraries. It is intended for projects that need digital ambient light measurements in lux.
Yes. This ShillehTek version comes with headers pre-soldered, so it can be plugged into a breadboard or jumper wires without soldering. You still need to connect power, ground, SDA, and SCL to your controller.
The BH1750 outputs a digital lux reading over the I2C bus instead of an analog voltage. Typical wiring uses power, ground, SDA, and SCL connections, which helps avoid analog calibration in supported microcontroller projects.
Use this sensor when a project needs measured ambient light levels, such as smart lighting, automatic dimming, plant grow monitoring, daylight detection, or security light triggers. It reports light intensity as lux, which is useful for repeatable thresholds.
If readings do not appear, check that SDA and SCL are connected to the correct I2C pins for your board, power and ground are secure, and I2C is enabled in software. Also confirm your code uses a BH1750-compatible library.

Have other questions?

Chat with our US-based team — we usually reply fast.

Features & Specs

ROHM BH1750FVI sensor Digital ambient-light sensor that returns calibrated lux over I2C — no analog calibration.

1–65,535 lux range 16-bit readings at 1 lux resolution (0.5 lux in H-res2 mode, 4 lux in low-res mode).

I2C with two addresses 0x23 by default, 0x5C with ADDR pulled high, so two sensors can share one bus.

3.3 V or 5 V Onboard regulator; works with Arduino, ESP32, Raspberry Pi and Pico.

~120 ms per high-res reading ~16 ms in low-res mode; about 120 µA while measuring.

Human-eye spectral response Reads visible light the way people see it, unlike an IR-heavy photoresistor.

5-pin header, pre-soldered VCC, GND, SCL, SDA, ADDR. Available as a single or a 3-pack.

Documents

Full Product Manual BH1750 Pre-Soldered Light Intensity Module In-depth setup guide with wiring, code examples, and troubleshooting.

Related Tutorials

Related Videos

Customer Reviews

  • 5 stars: 23 (85%)
  • 4 stars: 4 (15%)
  • 3 stars: 0 (0%)
  • 2 stars: 0 (0%)
  • 1 star: 0 (0%)
a
anonymous_buyer
Great, works, raspberry pi 4b plug in & use

Love my BH1750. Install to my raspberry pi 4b was a piece of cake. ChatGPT has all the installation instructions and it works perfectly. Installed and used a test script in like 20 mins. 20-100 lux with light from another room, 1200 lux with light on it, 13000 lux with the light inches from it, def works. Plan to purchase these in mass if my project takes off.Pin mapping:BH1750 Pin // Raspberry Pi 4B GPIO LabelVCC (Power) // 3V3 (3.3V Power)GND (Ground) // Any GNDSCL (Clock Line) // SCL1 (I2C Clock)SDA (Data Line) // SDA1 (I2C Data)ADDR (Address) // Leave Open

J
JHoney
Presoldered header for easy breadboarding

I attached it to a Arduino Leonardo. With VCC on 3.3V, GND, and SCL/SCA attached I ran the hp_1750 BareMinimum sketch. On the serial console I could see values being printed.I compared the output with my Uni-T UT383 Lux meter and generally they are in the same ballpark. For example with both meters side by side I shined a flashlight from about 2 feet away. The UT383 read about 3200 lux, while the BH1750 module read 2950 lux.It looks like doing accurate analysis with this type of meter is a bit more complex, and requires some extra considerations. Out of the box though it's very easy to get going for simple comparative analysis.From what I understood there is a trade-off of resolution, maximum lux, and speed of measurement. You can make a decision about how to set the Quality and MTreg settings based on your own requirements.Since this is supposed to be 5V tolerant I also tried powering it with 5V, and operation/values received were the same. On the board I can see the VCC pin is connected to a SOT23-3 chip marked 662K. Search indicates this might be XC6206P332MR 3.3V voltage regulator.The circuit seems to lack proper level shifters for the I2C data lines. It might prove problematic with some I2C busses, but I only tried it on the Arduino.

M
M. W.
easy to use high accuracy/sensitivity light sensor module

Despite its ease of use, it comes in the bare module WITHOUT any cable nor specifications/tutorial. Fortunately it's easy to find its usage online.Pretty straightforward, it only requires minimum 4 pins connection, VCC, GND, SDA/SCD of the I2C. Reading is digital ready and much better than using LDR, in case you want to take the measurement in "lux".I tested it with Raspberry Pico, no problem in working but unable to confirm its "lux accuracy" but it appears reasonable.Great addition to IoT/DIY project in measuring light intensity in high accuracy requirement.

D
DC
OK, but could be better

It came with no datasheet, but googling BH1750 found one quickly, and the TWI protocol described in that doc works. The sensor is what it is - you can find information about it elsewhere; this product is a breakout board to make that sensor more accessible to the hobbyist/designer. ON that front, it is OK. Everything seems to work fine, the soldering/assembly looks good. I ran a quick test to make sure it actually works, and it does (see attached photo). The only complaint that I have is that the pins, and screen printing (i.e. identification for those pins) are on the same side of the board, opposite the sensor - so when you put it on a breadboard, or piggyback it onto a PCB, you can no longer see the pin labels. Seems like it would be more useful to duplicate those labels on the other side of the board - it would be much more useful to users, at literally no additional cost to the manufacturer.

S
Scott
Simple Yet Sensitive Ambient Light Sensor

I recently tested this handy little light sensor module for use in IoT and microcontroller projects needing luminance measurements. It worked flawlessly for detecting relative ambient light changes using an Arduino board. The GY-302 module features a BH1750FVI IC chip and comes pre-soldered for easy wiring with pins that work perfectly with standard breadboard connection wires. I connected it to an Arduino Uno R4 WiFi using just the two I2C pins and power/ground. The included mounting holes made securing it straightforward.The sensor proved very responsive to subtle light adjustments in my tests. Without calibrated equipment, I couldn't validate the absolute lux accuracy claims. However, sensitivity and repeatability were excellent—the key criteria for my use case.Between the handy form factor, pre-soldered pins, mounting holes, and sharp sensitivity, this little sensor impresses. It's a great way to add ambient light detection to your projects. Integration takes minutes with the proper BH1750 library installed. See the Arduino sketch I included to below to see what it takes to integrate this. In the Arduino library manager, install the library BH1750 By Christopher Laws to use this test script.#include #include BH1750 lightMeter;void setup() { Serial.begin(9600); Wire.begin(); lightMeter.begin(); Serial.println(F("BH1750 Test begin"));}void loop() { float lux = lightMeter.readLightLevel(); Serial.print("Light: "); Serial.print(lux); Serial.println(" lx"); delay(1000);}

M
Mike K
Very easy to use

I love how this module isn't simply a breakout board, it's a fully functional interface for the sensor that operates on both 3.3v and 5v supplies. There are 5 pins but you only need to use 4 if you don't need to change the I2C address -- the address pin can be left open, which is what I did.I tested on an Uno using the BH1750 Arduino IDE library by Christopher Laws. Everything was left at default settings for my test, which consisted of taking a simple "getLightLevel()" reading in a somewhat dim room with an overhead table lamp, and then with the table lamp brought within inches of the sensor. I can't comment on accuracy, but depending on the mode used, it's supposed to be accurate down to 1lux with a 0.5lux resolution. Even moonlight is well below 1lux so you won't be using this for accurate readings in very low light, so that resolution is plenty precise in most other applications.Speaking of modes, you can set continuous or one-time reading modes ("one-time" is for low-power applications as it shuts down after a reading) with different measurement times, with longer measurement times giving more precise readings.The sensor by itself is over $4 unless bulk ordering (from reputable sources, anyway), so adding a couple bucks for such convenience in a such a small package is easily worth it. I'll be removing the pins when I use this for my application, but that's about the only changes I'll need to make.

B
BobK
Nice light sensor

The only negative I have is that the vendor provides no documentation, so you have to find it yourself. The best source I found for this device is randomnerdtutorials dot com. (BTW, this is one of my favorite sites in general for Arduino, ESP32, etc. information). Just type BH1750 into their search box.Most people have used the standard photoresistor that comes with most Arduino kits to sense light levels. It works fine for turning on a night light or adjusting LCD screen contrast, but it’s not well suited for measuring true light intensity in units of Lux. The BH1750 is a big improvement. Some features include (taken from the randomnerdtutorials website): range 1-65535 lux; two different I2C addresses; low-resolution mode (16 ms measurement time, 4 Lux precision); and high-resolution modes (120 ms measurement times, 1 lux and .5 lux precision).The Arduino circuit is trivial (see picture), just connect 5V, GND, SCL to A5, and SDA to A4. The ADDR pin can be left open or grounded to use the default I2C address 0x23. If connected high, it uses the alternative I2C address 0x5C. I left it open.I used Arduino IDE 2.x to test the device. Type BH1750 into the library search box and you’ll see about nine different libraries that support it. I used the one by Christopher Laws, which shows up at the top of the list. It’s quite a nice library so I haven’t felt the need to look at the other libraries. Once you load the library, five example programs become available under the BH1750 heading. I used the basic BH1750test.ino. Run the program and open the Serial Monitor. It shows 146 lx in my well-lit office, 4 lx if I turn off the light (still getting a bit of light through the curtain), and 310 lx when I turn on a bright desk lamp. I don’t have a way to independently measure light intensity, but these values seem reasonable.Overall, the GY-302 is a nice sensor board. It includes a voltage regulator and level shifters so you can use it with both 5V (Arduino) and 3.3V (ESP32, Raspberry Pi) systems. It’s easy to use and there is good software support for it.

W
Weekend warrior
Excellent quality and well packaged

I was immediately impressed when I received this because the metal posts were packaged into a bed of medium foam, which protected the critical attachment surface during transit! Once plugged into my Arduino board, it was easy to program and does exactly what you expect! Great find!!

s
stvrdl
I2C interface

The I2C interface makes this light sensor easy to add to an ESP8266 project

s
siba Alnass
Bh1750 is Really Easy to Use

Measures Lux accurately with Esp32 library is super easy

D
Derek B. Rosen
Great low and high light level range

There work well. Good low and high light level range. I don't like the sensor placement on the pcb. Not ideal for placement in a 3D case. I ended up using the variant that includes a 1 inch dome cover. Less sensitive but still great light range.

p
pepkilz
Decently accurate Lux sensor

It has been working for me just fine for a few months now, just to control some LED lights based on outside brightness.If you are new to these or just haven't played around much with micro-controllers just know they don't provide much documentation. I would recommend doing some googling on the BH1750 light sensor and how you can incorporate it properly into your projects.

J
Josh
Accurate

So long as you follow the directions for using whatever library you choose this is an accurate sensor

V
Viking Lawyer
Measures a very large range accurately

Nifty little module when you need to measure light quantitatively. The unit measures light in LUX which is nice. I used the Adafruit example code and it worked well to get it going. The unit is well made, and very reasonably priced.I used mine on an STM32 blue pill board. I'd recommend it to anyone.

H
Humphrey-Tech
Works good

I am very happy with this item.I ordered this to sense when my laser engraver door has been opened. While overkill, it worked perfectly in that role. I used it with an Arduino to send a message to my computer that in turn send me a text message if the engraver door is opened during a cutting operation.The quality is on par with what you would expect to find for this type of module and Arduino documentation and code were easy to find all over the internet.I'd definitely recommend this item to friends and colleagues.

C
Captain delirious
Works perfectly but no documentation at all

This sensor works on both 3.3 and 5v supply unlike some others. The results were same on both. My concern is there is absolutely no documentation of any sort on it. I understand its a product for nerds but some paperwork would have been nice.With that out of the way what you need to do is Google and there are plenty of guides to make this work. Amazon removes any links in the review so I won't be able to post it but its easy enough even for kids. I used it on a breadboard connected to Raspberry Pi 4B.

R
Robert
Well manufactured board, convenient for hobbyist/prototyping use

SHILLEHTEK makes nice boards for development and testing. This is well manufactured. Though they provide no documentation, the chip sheets are always easy to find because these are high-volume, common parts.I configured this under Nuttx and while there were no native drivers, I was able to draft a few lines of mechanical i2c code from public Arduino drivers and confirm basic operation. This is a nice digital sensor that didn't jump and jitter around the way analog light sensors do.Recommended.

T
Thomas
A solid performing BH1750 with presoldered pin header

I pushed this BH1750 module into a breadboard and hooked up four of it's five pins to my Arduino Uno, and ran an example sketch to test it out. The Lux readings come through clearly and I didn't notice any problems with the hardware whatsoever.It's always very convenient to have the pin header already soldered on. The item also came in an anti-static bag with the pins pushed into a block of foam.

L
Long
Working on Pi 3B+

This light sensor works great. I'm using it to control a lighting automation that I don't want to run when there is already enough light in the room. So this is effectively working as a master on/off switch for my application. Definitely 3D print an enclosure to mount this sensor in a place that makes sense because stuck to a Pi isn't really an ideal spot for sensing light, especially when the Pi is hidden somewhere where there isn't normal light. I found a few tutorials online on how to wire and code up this sensor for whatever I want to do. Super cheap and tiny, making it easy to install.

R
R. Shine
great light intensity module

This works great. It is easy to interface to the Arduino or Raspberry Pi. I was quickly able to locate code and tutorial online to start taking readings.The module is built well. I already have some projects in mind to start taking advantage of the light intensity readings such as a sun tracker.

R
RS
Easy to get running on and arduino

I wanted this for an Arduino project with two i2c devices. Library for the BH1750 worked with the device right off the bat without any troubles. There are tons of source examples all over the web and I had no problem implementing it to my project. The quality of the board itself is good with no visible problems. Header comes pre-soldered to the board.

J
Jay D Lechnyr
It's a lot smaller than it looks.

It works exactly as advertised. But it's a lot smaller than the pictures make it look. Maybe a bit too small, it will be hard to mount on anything.