In this post, I would present items below:
LEDs need a limiting current circuithow to make a flashlightmake a light powered by the portable battery, and dimming the LEDs by ESP8266 via MQTTThe video is the recap and a short explanation of how this works,
I planned to have PIR sensor included, but the tutorial gets rather long so that the PIR sensor will be presented in the second part of this topic.
So let begins.”

Link