Search for question
Question

Question 3: a/ Write a code to generate a dataset containing temperature and humidity readings collected from an loT sensor deployed in a greenhouse (using random numbers). Your task is to

write a Python program to analyze this data using tuples. (30 pts) *Dataset:* The dataset is stored in a CSV file named sensor_data.csv. Each row in the file represents a single data point with the following format: timestamp, temperature (°C), humidity (%) For example: 2024-01-29 12:00:00, 25.5, 60.2 b/ + Read the data from the CSV file and store it in a list of tuples, where each tuple contains the timestamp, temperature, and humidity readings. (20 pts) + Calculate and print the following statistics: (20 pts) - Maximum temperature recorded. - Minimum temperature recorded. - Average temperature. - Maximum humidity recorded. - Minimum humidity recorded. - Average humidity.

Fig: 1