The above is a Hall Effect Sensor, (magnetic sensor).
L7805CV, this is a 5 volt regulator.
Use a 9v battery holder, 6 AA batteries (6 * 1.5v = 9v).