for actuating a switch by gravity