Java program to track status of a garage door sensor and trigger a relay to close garage via web or after timeout.