{"product_id":"bh1750-gy-302-light-sensor-module-digital-lux-i2c-3v-to-5v","title":"BH1750 GY-302 Light Sensor Module - Digital Lux, I2C, 3V to 5V","description":"\u003cdiv class=\"nznpd\"\u003e\n\u003cdiv class=\"nznpd__lead\"\u003e\u003cp class=\"nznpd__intro\"\u003eA 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 \u003ca href=\"\/products\/veml7700-ambient-light-sensor-module\"\u003eVEML7700 ambient light sensor\u003c\/a\u003e.\u003c\/p\u003e\u003c\/div\u003e\n\u003csection class=\"nznpd__block\"\u003e\u003ch3 class=\"nznpd__h\"\u003eSpecifications\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__specs\"\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSensor chip\u003c\/span\u003e\u003cstrong\u003eBH1750FVI digital light sensor\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSupply (VCC)\u003c\/span\u003e\u003cstrong\u003e3V to 5V, onboard 3.3V regulator\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eWorks with\u003c\/span\u003e\u003cstrong\u003e5V Arduino and 3.3V ESP32, Pi\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eInterface\u003c\/span\u003e\u003cstrong\u003eI2C, address 0x23 or 0x5C\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eRange\u003c\/span\u003e\u003cstrong\u003e1 to 65535 lux, 1 lux steps\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eResponse\u003c\/span\u003e\u003cstrong\u003eClose to the human eye, peak 560 nm\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eReading time\u003c\/span\u003e\u003cstrong\u003e120 ms high resolution, 16 ms fast\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePins\u003c\/span\u003e\u003cstrong\u003eVCC, GND, SCL, SDA, ADDR\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eBoard size\u003c\/span\u003e\u003cstrong\u003e18.5 x 13.9 mm, two 3 mm holes\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\u003c\/section\u003e\n\u003csection class=\"nznpd__block\"\u003e\u003ch3 class=\"nznpd__h\"\u003eDatasheets\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__ds\"\u003e\n\u003ca class=\"nznpd__dsbar\" href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/BH1750-GY302-Datasheet-v3-r1-2026-10-14.pdf\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download the BH1750 GY-302 technical datasheet PDF\"\u003e\u003csvg width=\"20\" height=\"20\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"\u003e\u003c\/path\u003e\u003cpolyline points=\"14 2 14 8 20 8\"\u003e\u003c\/polyline\u003e\u003c\/svg\u003e\u003cspan\u003eFull technical datasheet\u003c\/span\u003e\u003cspan class=\"nznpd__dsmeta\"\u003ePDF\u003csvg width=\"17\" height=\"17\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"\u003e\u003c\/path\u003e\u003cpolyline points=\"7 10 12 15 17 10\"\u003e\u003c\/polyline\u003e\u003cline x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"\u003e\u003c\/line\u003e\u003c\/svg\u003e\u003c\/span\u003e\u003c\/a\u003e\n\u003c\/div\u003e\u003c\/section\u003e\n\u003csection class=\"nznpd__block\"\u003e\u003ch3 class=\"nznpd__h\"\u003eWhat's in the box\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__included\"\u003e\n\u003cdiv class=\"nznpd__qty\"\u003e1×\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cstrong\u003eGY-302 BH1750 light sensor board\u003c\/strong\u003e\u003cp\u003eShips with a 5-pin 2.54 mm male header, loose and ready to solder. Jumper wires and the microcontroller are not included.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\u003c\/section\u003e\n\u003csection class=\"nznpd__block\"\u003e\u003ch3 class=\"nznpd__h\"\u003eGreat for\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__uses\"\u003e\n\u003cdiv class=\"nznpd__use\"\u003eTurn on lights or a display backlight when the room gets dark\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eLog daylight levels in a greenhouse or shed\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eCheck grow light or desk lamp brightness in lux\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eClose blinds or curtains when the sun gets strong\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eAdd a light reading to an ESP32 weather station\u003c\/div\u003e\n\u003cdiv class=\"nznpd__use\"\u003eLearn I2C sensors on an Arduino or ESP32\u003c\/div\u003e\n\u003c\/div\u003e\u003c\/section\u003e\n\u003csection class=\"nznpd__block\"\u003e\u003cdiv class=\"nznpd__qs\"\u003e\n\u003ch3\u003eWiring \u0026amp; getting started\u003c\/h3\u003e\n\u003col class=\"nznpd__steps\"\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eSolder the header\u003c\/strong\u003e\u003cp\u003ePush 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.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eWire four pins\u003c\/strong\u003e\u003cp\u003eVCC 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.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eRun the test sketch\u003c\/strong\u003e\u003cp\u003eThe 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.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eCheck it responds\u003c\/strong\u003e\u003cp\u003eCover the sensor with a finger and the reading drops towards 0. Shine a torch on it and it climbs.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003c\/div\u003e\u003c\/section\u003e\n\u003cp class=\"nznpd__note\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e 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.\u003c\/p\u003e\n\u003c\/div\u003e","brand":"NZN Electronics","offers":[{"title":"Default Title","offer_id":67588915495008,"sku":"MOD-BH1750-GY302","price":4.29,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/bh1750-gy302-light-sensor-01-hero.png?v=1791941297","url":"https:\/\/www.nznelectronics.co.nz\/products\/bh1750-gy-302-light-sensor-module-digital-lux-i2c-3v-to-5v","provider":"NZN Electronics","version":"1.0","type":"link"}