check multiple sensors, write CSV, logout