Free email course on building IoT with Cloud IoT CoreCloud IoT Core
Free email course on  
Connectivity in IoT
Thanks for signing up! You'll get the first email soon.
Oops! Something went wrong while submitting the form.
< Back to Blog

Every year, New York City spends $2.3 billion on waste management. Of that $2.3 billion, roughly $750 million is spent on curbside collection and street cleaning. While these numbers are already very high, they encompass only the payments from the New York City government for waste management. Much more is spent each year on waste management and garbage collection by private entities throughout New York City and the rest of the country.

But the numbers don’t have to be that high. Trash collection is fraught with inefficiencies, the largest of which is collection that is typically scheduled and does not occur based on how full the garbage receptacle is. This results in needless pickups that drive up waste management costs for private entities, and inefficient waste truck usage to empty unfilled dumpsters.


Enter smart waste management, powered by the Internet of Things. Adding intelligence to trash receptacles by sensing the fill level or attaching solar powered compactors can reduce operational costs by as much as 80%.

In this article, we will go over how to build a waste management system using Google Cloud Products, namely Cloud IoT Core, PubSub, BigQuery, and FireStore. To get started, let's learn more about the components and how we used them to build this smart city waste management solution.

Cloud IoT Core: A relatively new offering from Google, this product acts as the data ingestion layer for the system. Fill level and air quality sensors send data over the MQTT protocol through IoT Core, which manages the transmission security and devices.

Cloud Pub/Sub: Google Pub/Sub is designed around the concept of a few very high bandwidth topics, which is perfect for handling huge amounts of data flowing through a system at a time.

BigQuery: Google BigQuery is designed for massive data scale, and is capable of efficiently searching through large time series datasets in seconds. This makes it one of the cheaper options for historical data storage.

Cloud Firestore: Firestore is like Firebase’s more mature and stable brother, capable of storing real time data and ensuring that the data stays synchronized with any local applications.

Google Data Studio: Data Studio is a powerful analytics dashboard software for creating analytics views of historical data sets. Data studio gives further insight into the long-term behavior of a waste management solution.

The best part about all of these offerings is that they are fully managed services, meaning there is no need to worry about the reliability or uptime of your particular deployment. Everything is built to scale, so you can focus on building a product that has value to customers.

The demo we created is relatively simple in both architecture and data, but if your solution requires a more complex system, check out Google’s products and other architecture suggestions on their solutions page.

Have Questions? Talk to an Expert

James Schaefer

James is the Director of Engineering at Leverege. He graduated from NC State University in 2016 with degrees in Computer Science and Textile Engineering. His writing focuses on development and security.


Liked this post? You're gonna love these!

Building a Cold Chain Management IoT Solution
April 30, 2019
IoT Security: Inherent Risks Require Robust Solutions
May 3, 2019
Dot Dot Over Thread Deep Dive
March 13, 2019

Talk with Leverege

What type of use case are you building for? Whichever it is we are looking forward to learning more about your needs.

Have Questions?

Our team of experts is here to help!

Thanks for your submission! Our team is looking forward to connecting with you and will be in touch very soon!
Oops! Something went wrong while submitting the form.