UPDATE_INTERVAL
alarm(UPDATE_INTERVAL);
if (now - last_resources_update < UPDATE_INTERVAL)
if (now - last_sensors_update < UPDATE_INTERVAL)