Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Steps/WriteThePiCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ Python has a concept of `.env` files to store secrets such as connection details
data = {
"humidity": round(temp_pressure_humidity.humidity, 2),
"pressure": round(temp_pressure_humidity.pressure/10, 2),
#default temperature in celsius
"temperature": round(temp_pressure_humidity.temperature, 2),
#comment the above line and uncomment the below line, if you want to capture the temperature in fahrenheit
#"temperature": round(((temp_pressure_humidity.temperature * 9/5) + 32), 2),
"soil_moisture": round(moisture, 2)
}

Expand Down