Source: https://www.howtogeek.com/264922/how-to-automatically-turn-on-a-porch-light-when-motion-is-detected/