This tutorial guides users through connecting a Raspberry Pi to PostgreSQL on the cloud for IoT projects. It covers setting up a TimescaleDB instance and a Grafana instance, configuring a photocell light sensor with a Raspberry Pi, creating a Python script to record sensor readings, and visualizing data in Grafana. The process demonstrates how to store, process, and visualize time-series data from an IoT prototype using TimescaleDB and PostgreSQL.