Comments on: ESP8266 NodeMCU with BH1750 Ambient Light Sensor https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 21 Nov 2023 14:50:05 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Pedro https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/#comment-873434 Tue, 21 Nov 2023 14:50:05 +0000 https://randomnerdtutorials.com/?p=108788#comment-873434 Hello Sara

May be I’m wrong, but it seems sketch first read illuminance level, and THEN adapts parameters FOR NEXT READING, this means that if you make periodic measurements, let´s say every 5 minutes, next measurement will be affected by “old” parameters, not the current reality right?

Better to take several measurements during a quite long period and establish an average value to discard strange results…

Regards

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/#comment-866194 Tue, 17 Oct 2023 15:49:32 +0000 https://randomnerdtutorials.com/?p=108788#comment-866194 In reply to Rain Acam.

Hi.
Can you provide more details?
Regards,
Sara

]]>
By: Rain Acam https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/#comment-866109 Tue, 17 Oct 2023 06:33:55 +0000 https://randomnerdtutorials.com/?p=108788#comment-866109 It says “device is not configured” what should I do?

]]>
By: Francois Moutou https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/#comment-801448 Wed, 07 Dec 2022 21:29:24 +0000 https://randomnerdtutorials.com/?p=108788#comment-801448 Thanks for the tuto. Do you know what the max lux value is?

]]>
By: James Cotter https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/#comment-731796 Sun, 13 Mar 2022 21:03:16 +0000 https://randomnerdtutorials.com/?p=108788#comment-731796 Thanks for the help, that should work

]]>
By: Fred https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/#comment-731775 Sun, 13 Mar 2022 17:35:29 +0000 https://randomnerdtutorials.com/?p=108788#comment-731775 In reply to James Cotter.

Hi !
I think you just have to make a test on var lux :
float level = 100; // level is fixed at 100 lx
if ( lux < level )
{digitalWrite(pin, HIGH);}
else
{digitalWrite(pin, LOW);}
Fred

]]>
By: James Cotter https://randomnerdtutorials.com/esp8266-nodemcu-bh1750-ambient-light-sensor/#comment-731334 Thu, 10 Mar 2022 12:24:05 +0000 https://randomnerdtutorials.com/?p=108788#comment-731334 I would like to see an application where in the the sensor could turn a pin high when there
was very little light and turn a pin low when there was light detected.

]]>