enable alarm function & accelerometer input