Why divide work into tasks?
A sensor device may need to sample periodically while communication waits for data or a connection. An RTOS provides a way to structure activities as tasks and schedule their execution. This does not remove the need to design timing and ownership clearly.
Move data with an explicit path
A queue can carry readings from a producer task to a consumer task. A semaphore can signal an event; a mutex can protect a shared resource. These are different needs, so choosing a mechanism starts with the relationship between the tasks.
Account for waiting and capacity
Decide what should happen when a queue is full or communication is slow. Blocking, discarding an old reading or reporting an error each produces different system behavior. The correct choice depends on the application.
Learn it in context
The institute’s ESP32 course includes tasks, priorities, stacks, queues, semaphores and mutexes. Applying these concepts in the environmental monitor gives them a concrete purpose. ESP-IDF’s implementation details should be checked against the documentation for the version and chip being used.