add a pared down version of the alarm sketch as a basis for the gate manager