Adding buttons to sense motion and door movements