Signaling devices, sensor switches, and pushbuttons with extended stroke are available as compact units. The electronics are already integrated here, or it is no longer necessary to snap on a contact or LED module.
Design of a compact unit