Work with temperature and humidity sensors to collect environmental data
Create a script that:
Save your code as: Lab4_YourInitials_temp_convertor (e.g., Lab4_AM_temp_convertor)
Create a script that:
temp_F); please note that the sensor is connected to pin 14.rh),Temp: 72 F Temp: 22.22 C
RH = 50 %).temp_F > 70:
temp_F ≤ 70:
Note: We selected this threshold to ensure that one of the conditions is always true. If it is, it will print something in the terminal, and one of the LEDs will turn on.
Save your code as: Lab4_YourInitials_temp_rh_measurements (e.g., Lab4_AM_temp_rh_measurements)
The script should have two main blocks:
The script should have two main blocks:
k with a value of 1 (k = 1)."Reading #" kk at the end of the loop (k = k + 1) or after the print statement. In this case, k will be updated at each iteration. So, in the second iteration, it will print Reading # 2Submit both programs saved as *.svg files: