Weathervane is an open source composting and computer science lesson.

This project was intended to be a lesson in ecology and computer science for middle school or high school students participating in a gardening or composting project.

There are 3 technical components in additon to a composting lesson. Coding and deploying a web application. Building an arduino powered tempurature sensor. Writing Arduino software.

Insructables breaks down the big steps and provides images to help follow along.
The Master Instructions walk you through everything and explain the code samples.
A Compost Lesson can be found on Medium.
Wifi-Weather-Station is the web application software.
Compost Monitor is the Arduino software.

I'd expect it to fit into about four lessons over four days. YMMV depending on your ability to help students troubleshoot technical problems.