Skip to main content
Sensor.Community is a contributors-driven global sensor network that creates Open Environmental Data. The data is collected from sensors all over the globe. Anyone can purchase a sensor and place it wherever they like. The APIs to download the data is in GitHub and the data is freely available under the Database Contents License (DbCL).
The dataset has over 20 billion records, so be careful just copying-and-pasting the commands below unless your resources can handle that type of volume. These commands were run on a suitably sized ClickHouse Cloud service.
To try these commands yourself, you can sign up for a free ClickHouse Cloud trial or set up self-hosted ClickHouse.
  1. The data is in S3, so we can use the s3 table function to create a table from the files. We can also query the data in place. Let’s look at a few rows before attempting to insert it into ClickHouse:
The data is in CSV files but uses a semi-colon for the delimiter. The rows look like:
  1. We will use the following MergeTree table to store the data in ClickHouse:
  1. We will use the s3Cluster table function, which distributes the S3 files among the nodes of your cluster so they are read in parallel. In ClickHouse Cloud, your cluster is named default and you can run this as shown. On a self-managed server, replace default with the name of your cluster — or, if you are running a single server, use the s3 table function instead, dropping the first argument so the call starts with the URL.
This query will take a while - it’s about 1.67T of data uncompressed:
Here is the response - showing the number of rows and the speed of processing. It is input at a rate of over 6M rows per second!
  1. Let’s see how much storage disk is needed for the sensors table:
The 1.67T is compressed down to 310 GiB, and there are 20.69 billion rows:
  1. Let’s analyze the data now that it’s in ClickHouse. Notice the quantity of data increases over time as more sensors are deployed:
We can create a chart in the SQL Console to visualize the results:
  1. This query counts the number of overly hot and humid days:
Here’s a visualization of the result:
Last modified on September 25, 2026