alarm sketch: alarm out read function working