Raspberry pi based garage door sensor and controller