https://medium.com/@tomas.rasymas/automating-light-switch-using-esp32-board-and-micropython-502622f54242