Read GPIO pin for switch position as "ready" or "sprung" Publish MQTT messages on 'trap' topic. mosquitto.org open source software MQTT broken, run on laptop or Raspberry Pi. Listen for Topic event ...