This wireless datalogging system can collect temperature, humidity, p.m. 2.5 or CO2 data. The real-time data collected are sent to the secured cloud server. The user can retrieve the data for further analysis. Each sensor can be used to control another switch such as A/C outlet, sound and light switch.