Here I show you how to make a simple magnet sensor by yourself.
There are just a few things needed.
Step 1: Materiallist & Schematics
What you need:
Power Source ( USB TTL Module 3,3V out)
Plug all together as shown on schematics and grab a magnet.
Put it right over the switch and light turns on.