InnoBits - Reed Switch
It is a reed switch. When any magnets get close to the reed switch, the switch is on, else is off.
Please note the modules are bigger than the LittleBits ones so they don't sit flush but the connectors do hook up.
LEGO® is a registered trademark of The LEGO Group.