store sensor values and alarm status in memory