# Build a Weather Station with Elixir and Nerves: SGP30 vs SGP40

**URL:** <https://forum.devtalk.com/t/build-a-weather-station-with-elixir-and-nerves-sgp30-vs-sgp40/20177>\
**Category:** PragProg Customers\
**Tags:** suggestion, book-build-a-weather-station-with-elixir-and-nerves\
**Created:** [4 September 2021 12:35 UTC](https://forum.devtalk.com/t/build-a-weather-station-with-elixir-and-nerves-sgp30-vs-sgp40/20177 "2021-09-04T12:35:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fynn](https://forum.devtalk.com/user_avatar/forum.devtalk.com/fynn/32/3338_2.png) [@fynn](https://forum.devtalk.com/u/fynn)\
**Post date:** [4 September 2021 16:54 UTC](https://forum.devtalk.com/t/build-a-weather-station-with-elixir-and-nerves-sgp30-vs-sgp40/20177/2 "2021-09-04T16:54:07Z")

</div>

Just by way of a head scratch… using the [SGP40](https://github.com/elixir-sensors/sgp40) hex package I can get answers back.

```auto
{:ok, sgp} = SGP40.start_link(bus_name: "i2c-1")
{:ok, %SGP40.Measurement{timestamp_ms: 316809, voc_index: 71}}

```

Onwards in this new journey I guess, thanks for an interesting afternoon so far 🙂

---

_[View the full topic](https://forum.devtalk.com/t/build-a-weather-station-with-elixir-and-nerves-sgp30-vs-sgp40/20177)._
