Advanced Pressure Pad
The advanced pressure pad is an electronic device which outputs a HIGH signal whenever a player or mob is standing on it, otherwise it outputs a LOW.
Copper Wire or devices can be attached to any side. There is also a standard Pressure Pad which is triggered by players, but not mobs.
. . . ..