Power supply of a limit switch

Beware, a lever operated limit switch is NOT very accurate.