---
title: 'Host Firmware: Python on Raspberry Pi'
description: Write host firmware in Python for a Raspberry Pi that reads an external sensor and sends the readings to Notehub through Notecard.
source_url: https://dev.blues.io/guides-and-tutorials/writing-host-firmware/raspberry-pi/python/
canonical_url: https://dev.blues.io/guides-and-tutorials/writing-host-firmware/raspberry-pi/python/
markdown_url: https://dev.blues.io/guides-and-tutorials/writing-host-firmware/raspberry-pi/python.md
---

# Writing Host Firmware Python and Raspberry Pi

In previous tutorials, you used the In-Browser Terminal to communicate with your Notecard and sent hardcoded data to and from the Notehub.

In real-world applications, most connected products are driven by a host: a microcontroller (MCU) or single-board computer (SBC) that reads sensors, runs application logic, and controls the product’s behavior. In Notecard-based projects, the host communicates with Notecard over I2C or UART, typically using one of our official SDKs.

In this tutorial, you’ll learn how to write host firmware that communicates with Notecard, collects data, and sends that data to Notehub.

Versions of this guide are available for several popular languages and host platforms. Use the dropdowns below to explore the options. And if you want to communicate with Notecard using a language or environment not covered by this guide, see our [Firmware Libraries](https://dev.blues.io/tools-and-sdks/firmware-libraries.md) page for the official Notecard SDKs for Arduino, C, ESP-IDF, Go, Python, and Zephyr.

*Don't see your favorite hardware here? Rest assured the Notecard works with virtually every MCU and SBC available. If you can't figure out how to complete this tutorial [let us know in our forum](https://discuss.blues.com/) and we can help you out.*

## Introduction {#introduction}

*This tutorial should take approximately 40-50 minutes to complete.*

In this tutorial, you'll learn how to use **Python** to write firmware that runs on a **Raspberry Pi**. Specifically, your firmware will collect temperature and humidity data at an interval, queue it on your Notecard, and synchronize it to Blues Notehub.

This tutorial uses a library that provides mock sensor readings for simplicity, but feel free to hook up a physical sensor of your choice and use that instead. The goal of this tutorial is to demonstrate reusable firmware techniques you can apply to your own Notecard-based projects.

AI Tip

Throughout this guide we’ll share tips for writing host firmware with AI, which we recommend. Look for these boxes for AI-specific guidance and prompts you can use with your LLM of choice.

## Setup {#setup}

Make sure you've met the following hardware and software requirements before continuing.

### Hardware {#hardware}

To complete this guide, you'll need the following hardware.

- A Notecard mounted to a Notecarrier Pi. *Be sure to use standoffs to secure the Notecarrier Pi to your Raspberry Pi to prevent a short between the external SIM slot on the Notecarrier Pi and the HDMI out port on the Raspberry Pi.*

- A Raspberry Pi. *Any Single-Board Computer with a Raspberry Pi-compatible 40-pin connector, along with Pip and Python 3.x.x will do. If you plan to use a Raspberry Pi-compatible device, see the [Notecarrier Pi Datasheet](https://dev.blues.io/datasheets/notecarrier-datasheet/notecarrier-pi-v2-0.md#notecarrier-pi-40-pin-header) for pin configuration info.*

warning

Due to the power requirements of the Notecard, some Raspberry Pi 2 and 3 models include a current-limiting fuse that will power-cycle the device when the Notecard's modem is on and transmitting. To avoid these issues, *we recommend using only Raspberry Pi 4 or 5 devices with the Notecard and a Notecarrier*.

I2C communication between a Raspberry Pi and the Notecard can be unreliable, because Raspberry Pi I2C controllers have a history of problems with I2C clock stretching. This includes the Raspberry Pi 5, whose new RP1-based I2C controller Blues has not yet verified to handle clock stretching reliably. If you see errors such as `Failed to reset Notecard` or `Remote I/O error`, see [Why am I getting I2C errors with the Notecarrier Pi on a Raspberry Pi?](https://dev.blues.io/support/frequently-asked-questions.md#why-am-i-getting-i2c-errors-with-the-notecarrier-pi-on-a-raspberry-pi) for workarounds, including switching to serial.

### Software {#software}

You'll also need the following software.

- **Raspberry Pi OS with Python 3 and `pip3`.** Both ship with a standard Raspberry Pi OS image. You'll also need SSH access to the Pi from a terminal on your computer.

- **A text editor.** You'll write a Python script on the Pi itself. `nano` is installed by default and is sufficient for this guide. For a nicer experience, use VS Code with the **Remote - SSH** and **Python** extensions.

## Create a Notehub Project {#create-a-notehub-project}

Now that your hardware is ready, let's create a new Notehub project for this tutorial.

1. Navigate to [Notehub](https://notehub.io) and log in.

2. Click the **Create Project** button.

3. In the New Project dialog, give your project a name and ProductUID.

   ![How to create a new Notehub project](https://dev.blues.io/images/guides/notehub/create-project.png?v=bf29a47a)

   note

   The ProductUID must be globally unique, so we recommend a namespaced name like `"com.your-company.your-name:your_product"`.

4. Take note of your ProductUID. This identifier is used by Notehub to associate your Notecard with your project.

   ![Where to find your product UID](https://dev.blues.io/images/guides/notehub/product-uid.png?v=d829ab1d)

## Write Firmware {#write-firmware}

Now you're ready to build your app. Before writing code, you'll need to `ssh` into your Raspberry Pi from a terminal program and configure I2C communications.

### Configure the Raspberry Pi {#configure-the}

#### Configure I2C for the Notecard and Raspberry Pi {#configure-i2c-for-the-notecard-and}

The Notecarrier Pi uses I2C for communication from the Raspberry Pi. To enable I2C, use the `raspi-config` utility.

1. From a Pi terminal session, launch the "Raspberry Pi Software Configuration Tool (raspi-config)."

```bash
sudo raspi-config
```

2. Select **Interface Options**.

   ![raspi-config Interface Options](https://dev.blues.io/images/guides/first-sensor/rpi/interfacing-options.png?v=0c6b5286)

3. Select **P5 I2C**.

   ![raspi-config P5 I2C option](https://dev.blues.io/images/guides/first-sensor/rpi/select-i2c.png?v=52cf80c9)

4. For *"Would you like the ARM I2C interface to be enabled?"*, select **\<Yes>**.

   ![Enable ARM I2C prompt](https://dev.blues.io/images/guides/first-sensor/rpi/arm-i2c.png?v=3b022b96)

5. The next screen will confirm your selection, and should read, *"The ARM I2C interface is enabled"*. Select **\<OK>**.

   ![ARM I2C enabled confirmation](https://dev.blues.io/images/guides/first-sensor/rpi/i2c-enabled.png?v=5605bf7e)

6. Right arrow twice, and select **\<Finish>**.

   ![raspi-config Finish selection](https://dev.blues.io/images/guides/first-sensor/rpi/finish.png?v=495f3bee)

7. If prompted, *"Would you like to reboot now?"*. Select **\<Yes>**.

#### Install I2C Helper Tools {#install-i2c-helper-tools}

1. Once your Pi comes back online, SSH back into the device.

2. Install the `i2c-tools` package, so you can confirm connections to I2C devices.

```bash
sudo apt-get install -y i2c-tools
```

3. Run `i2cdetect` to ensure the Notecard is detected.

```bash
sudo i2cdetect -y 1
```

![i2cdetect Notecard address output](https://dev.blues.io/images/guides/first-sensor/rpi/pi-i2c-detect.png?v=55a12b25)

> You should see `17` in the output. This means a device responded at `0x17`, which is the I2C address of the Notecard.

note

Seeing the Notecard in the `i2cdetect` output confirms your wiring, but it doesn't guarantee reliable communication. Raspberry Pi I2C controllers, including the Raspberry Pi 5's, have a history of problems with I2C clock stretching. If `note-python` later fails with `Failed to reset Notecard` or a similar error, see [Why am I getting I2C errors with the Notecarrier Pi on a Raspberry Pi?](https://dev.blues.io/support/frequently-asked-questions.md#why-am-i-getting-i2c-errors-with-the-notecarrier-pi-on-a-raspberry-pi) for workarounds, including switching to serial.

### Write Code {#write-code}

warning

By default, the Notecarrier Pi provides *only* an I2C connection between the Pi host and the Notecard. To enable Serial communication, the [SERIAL TXRX](https://dev.blues.io/datasheets/notecarrier-datasheet/notecarrier-pi-v2-0.md#dip-switches) dip switch must be toggled to the `ON` position.

To communicate with the Notecard over I2C, you'll need to install the `note-python` and `python-periphery` libraries. And to generate mocked sensor readings, you'll need to install the `notecard-pseudo-sensor` library.

1. Install the [`note-python`](https://github.com/blues/note-python), [`notecard-pseudo-sensor`](https://github.com/blues/notecard-pseudo-sensor-python/), and [`python-periphery`](https://github.com/vsergeev/python-periphery) libraries. Current Raspberry Pi OS releases only allow `pip` to install packages into a [virtual environment](https://www.raspberrypi.com/documentation/computers/os.html), so create and activate one first.

```bash
python3 -m venv ~/notecard-env
source ~/notecard-env/bin/activate
pip install note-python notecard-pseudo-sensor python-periphery
```

If you open a new SSH session later, run `source ~/notecard-env/bin/activate` again before running your script.

2. In your project directory, create a new file called `sensors.py`.

```bash
nano sensors.py
```

3. Add the following imports to the top of the file:

```python
import json
import notecard
import notecard_pseudo_sensor
from periphery import I2C
import time
```

4. Next, add a variable for your ProductUID using the value you specified when creating your Notehub project:

```python
productUID = "com.your-company.your-name:your_product"
```

5. Configure the I2C connection to your Notecard, and initialize it using the `OpenI2C` function:

```python
port = I2C("/dev/i2c-1")
card = notecard.OpenI2C(port, 0, 0)
```

6. Now, we'll configure the Notecard. We will use the `hub.set` request to associate this Notecard with the ProductUID of your project, as well as set the Notecard to operate in `continuous` mode (indicating the device should immediately make a connection to Notehub and keep it active).

```python
req = {"req": "hub.set"}
req["product"] = productUID
req["mode"] = "continuous"
req["duration"] = 15
 
print(json.dumps(req))
 
rsp = card.Transaction(req)
print(rsp)
```

> The lines above build up a JSON object by adding values for `product`, `mode`, and `duration`, and then fire the request off to the Notecard with the `Transaction` function.

note

The `duration` argument tells the Notecard to end its current [session](https://dev.blues.io/api-reference/glossary.md#session) and start a fresh one every 15 minutes, even though it stays connected the whole time. Each session includes [useful metadata](https://dev.blues.io/api-reference/system-notefiles.md#session-fields), such as signal strength, data usage, location, and more.

7. Save and exit the `sensors.py` file. From the same directory, use the `python3` interpreter to run the program.

```python
python3 sensors.py
```

```python
{"req": "hub.set", "product": "com.your-company.your-name:your_product", "mode": "continuous", "duration": 15}
{}
```

If your terminal output looks similar to that above, then you are talking to your Notecard and all of your hardware is configured correctly!

### Read from the Sensor {#read-from-the-sensor}

Now that you've configured your Raspberry Pi to communicate with the Notecard, let's grab some pseudo sensor readings.

note

If you have your own sensor, feel free to hook it up and use your own values instead of this tutorial's mocked ones.

1. Add the line below to instantiate a new instance of the sensor class for generating mock values.

```python
sensor = notecard_pseudo_sensor.NotecardPseudoSensor(card)
```

2. Add a `while True` block to the bottom of your `sensors.py` file that uses the code below. Now the program will take a mocked temperature and humidity reading, and print those values to the console before sleeping for 30 seconds and repeating.

```python
while True:
  temp = sensor.temp()
  humidity = sensor.humidity()
  print('Temperature: {} degrees C'.format(temp))
  print('Humidity: {}%'.format(humidity))
 
  time.sleep(30)
```

3. Save and exit the `sensors.py` file. From the same directory, use the `python3` interpreter to run the program. Only this time, after the Notecard request and response statements, you'll see the temperature and humidity values logged to the terminal every 30 seconds.

```unknown
python3 sensors.py
```

```unknown
{"req": "hub.set", "product": "com.your-company.your-name:your_product", "mode": "continuous", "duration": 15}
{}
Temperature: 33.875 degrees C
Humidity: 49.9511%
...
```

### Queue Sensor Readings on Notecard {#queue-sensor-readings-on-notecard}

Now that we're getting sensor readings, let's send these to our Notecard.

1. To send a sensor reading to the Notecard, we'll need to construct a new JSON request to the `note.add` API that includes a new Notefile name (`sensors.qo`), sets the `sync` field to `True` (to instruct the Notecard to sync to Notehub immediately), and finally, sets the `body` to the sampled temperature and humidity. Add the following to the `while True:` loop, after the `print()` statements used to print out the readings.

```python
req = {"req": "note.add"}
req["file"] = "sensors.qo"
req["sync"] = True
req["body"] = { "temp": temp, "humidity": humidity }
```

2. To send the request to your Notecard and read the result, add the following just before the `time.sleep(30)` statement:

```python
rsp = card.Transaction(req)
print(rsp)
```

3. Save and exit the `sensors.py` file. From the same directory, use the `python3` interpreter to run the program. As it executes, the program output will update to display the response from the `note.add` request (the total number of Notes in the Notefile) each time you add a new reading.

```python
python3 sensors.py
```

```python
{"req": "hub.set", "product": "com.your-company.your-name:your_product", "mode": "continuous", "duration": 15}
{}
Temperature: 24.431171875 degrees C
Humidity: 50.35774813702876%
{'total': 1}
Temperature: 24.4348828125 degrees C
Humidity: 50.418771430827704%
{'total': 2}
...
```

note

If you're using a Notecard for LoRa, you must define a template for the `sensors.qo` Notefile before adding Notes to it. Add the following before your `while True` loop.

```python
req = {"req": "note.template"}
req["file"] = "sensors.qo"
req["port"] = 1
req["format"] = "compact"
req["body"] = {"temp": 14.1, "humidity": 14.1}
card.Transaction(req)
```

Learn more in [Working with Note Templates](https://dev.blues.io/notecard/notecard-walkthrough/low-bandwidth-design.md#working-with-note-templates).

## View Data in Notehub {#view-data-in-notehub}

Once you start capturing readings, your Notecard will initiate a connection to Notehub and will start transferring Notes. Depending on signal strength and coverage in your area, it may take a few minutes for your Notecard to connect to Notehub and transfer data.

1. Return to [Notehub](https://notehub.io) and open your project. You should see your Notecard in the Devices view.

   ![The new device in Notehub](https://dev.blues.io/images/guides/notehub/new-device.png?v=f506b425)

   note

   Each Notecard has a factory-assigned, globally unique identifier known as a [DeviceUID](https://dev.blues.io/api-reference/glossary.md#deviceuid). Notehub uses this identifier in the Devices view by default (for example, `dev:868531061604976` in the screenshot above).

   If you’d prefer to use your own identifier—such as a human-readable name or an internal ID—you can assign a [serial number](https://dev.blues.io/api-reference/glossary.md#product-sn) to your Notecard in one of the following ways:

   - **In Notehub:** Double-click your device in the Devices view to open its details, where you can edit the serial number.
   - **Via the Notehub API:** Set the reserved `_sn` environment variable using the [Set Device Environment Variables](https://dev.blues.io/api-reference/notehub-api/device-api.md#set-device-environment-variables) endpoint.
   - **Via the Notecard API**: Include an `sn` argument in the [hub.set request](https://dev.blues.io/api-reference/notecard-api/hub-requests/latest.md#hub-set) you used to configure your Notecard.

2. Now, click on the Events left menu item. Once your sensor Notes start syncing, they'll show up here. You may need to refresh the page to see newly synced Notes.

   ![The event list in Notehub](https://dev.blues.io/images/guides/notehub/events.png?v=76323245)

   Alongside your `sensors.qo` Notes you'll also see `_session.qo` events, which Notehub creates at the start and end of each session with details about your Notecard's connection.

## Use Environment Variables {#use-environment-variables}

[Environment variables](https://dev.blues.io/guides-and-tutorials/notecard-guides/understanding-environment-variables.md) are a Notehub state and settings management feature that allows you to set variables in key-value pairs, and intelligently synchronize those values across devices and fleets of devices.

In this section you'll learn how environment variables work by creating a variable that determines how often your firmware should take sensor readings.

### Using Environment Variables in Firmware {#using-environment-variables-in-firmware}

The Notecard provides [a set of requests for working with environment variables](https://dev.blues.io/api-reference/notecard-api/env-requests/latest.md). The most common of these requests is [`env.get`](https://dev.blues.io/api-reference/notecard-api/env-requests/latest.md#env-get), which allows you to retrieve the value of an environment variable.

Complete the steps below to use the `env.get` request to retrieve and use the `reading_interval_secs` environment variable.

AI Tip

Prompt

Set my Notecard to use an inbound interval of 5 minutes. Read a new environment variable named `reading_interval_secs`, and use that to determine how many seconds the firmware should wait between sensor readings.

1. First, adjust your existing `hub.set` configuration to set the `inbound` argument to `5`. This tells your Notecard to look for inbound changes from Notehub every 5 minutes.

   ```python
   req = {"req": "hub.set"}
   req["product"] = productUID
   req["mode"] = "continuous"
   req["duration"] = 15
   req["inbound"] = 5 # add this line
   rsp = card.Transaction(req)
   ```

2. Next, place the following new function before the existing `while True` loop.

   ```python
   # This function assumes you’ll set the reading_interval_secs environment
   # variable to a positive integer. If the variable is not set, set to 0, or
   # set to an invalid type, this function returns a default value of 60.
   def get_sensor_interval():
      sensor_interval_seconds = 60
      req = {"req": "env.get"}
      req["name"] = "reading_interval_secs"
      rsp = card.Transaction(req)
      try:
         reading_interval_secs = int(rsp.get("text", ""))
         if reading_interval_secs > 0:
            sensor_interval_seconds = reading_interval_secs
      except (AttributeError, TypeError, ValueError):
         pass
      return sensor_interval_seconds
   ```

3. Finally, find the existing `time.sleep(30)` line in your `while True` loop, and replace it with the code below.

   Rather than sleeping for the entire interval, which would keep your program from noticing a new `reading_interval_secs` until it woke up, this code sleeps in short 5-second steps and checks for a new value after each one. Changes you make in Notehub take effect as soon as they reach your Notecard.

   ```python
   wait_start = time.monotonic()
   sensor_interval_seconds = get_sensor_interval()
   print(f"Waiting {sensor_interval_seconds} seconds")
   while time.monotonic() - wait_start < sensor_interval_seconds:
      time.sleep(5)
      sensor_interval_seconds = get_sensor_interval()
   ```

   note

   Notecard for LoRa requires a template for each environment variable you use. If you're using a Notecard for LoRa to complete this tutorial, add the code below alongside your other Notecard configuration (before your `while True` loop) to provide a template for the `reading_interval_secs` variable.

   ```python
   req = {"req": "env.template"}
   req["body"] = {"reading_interval_secs": 22}
   card.Transaction(req)
   ```

   Here `22` is the type hint for a 2-byte unsigned integer (`0`–`65535`).

Your firmware now uses the `reading_interval_secs` environment variable to determine how many seconds to wait between sensor readings.

Save and exit the `sensors.py` file. From the same directory, use the `python3` interpreter to run the program. You should see your device using the default `reading_interval_secs` value of 60 seconds.

### Setting an Environment Variable {#setting-an-environment-variable}

Now that we have our device programmed to retrieve an environment variable from Notehub, we will create that variable. Environment variables can be set in the Notehub UI or through the Notehub API. In this tutorial you'll learn how to set the values through the Notehub UI. If you'd like to instead set environment variables through the Notehub API, see the [Set Device Environment Variables](https://dev.blues.io/api-reference/notehub-api/device-api.md#set-device-environment-variables) endpoint.

1. Return to your Notehub project, go to the **Devices** page, and double-click your device. You should see a screen that looks like this.

   ![The Notehub device screen](https://dev.blues.io/images/guides/first-sensor/environment/device-screen.png?v=cdb91b6c)

2. Click the **Environment** tab.

3. In the **Device** section, define a new environment variable named `reading_interval_secs` and set its value to `30`.

   ![The environment screen with a new value set](https://dev.blues.io/images/guides/first-sensor/environment/setting-a-variable.png?v=ac552d2e)

Now that you have an environment variable set, you'll see it reflected on your device **after your configured `inbound` interval has passed**.

```python
python3 sensors.py
```

```python
...
Temperature: 19.875 degrees C
Humidity: 49.3467%
{'total': 1}
Waiting 30 seconds
```

note

On cellular and WiFi-based Notecards you can use the [`hub.set` request](https://dev.blues.io/api-reference/notecard-api/hub-requests/latest.md#hub-set)'s `sync` argument to immediately receive inbound updates instead of relying on the `inbound` interval.

And with that, you've used your first environment variable on your Notecard! To see the real power of environment variables in action, try returning to Notehub and updating your device's `reading_interval_secs` with your serial monitor open.

tip

Checking `env.get` every few seconds works well for this tutorial, but it means your host has to stay awake and keep asking Notecard whether anything has changed. A more efficient approach is to have Notecard tell your host when a value changes.

If you connect Notecard's `ATTN` pin to a GPIO pin on your host, you can use the [`card.attn` request](https://dev.blues.io/api-reference/notecard-api/card-requests/latest.md#card-attn) with a `mode` of `"arm,env"`, and Notecard will fire `ATTN` whenever an environment variable changes. Your host can then sleep or do other work, and only call `env.get` when `ATTN` fires. See [Handling Notecard Interrupts](https://dev.blues.io/notecard/notecard-walkthrough/inbound-requests-and-shared-data.md#watching-for-environment-variable-changes) for details, and [Putting a Host to Sleep Between Sensor Readings](https://dev.blues.io/example-apps/samples/putting-a-host-to-sleep-between-sensor-readings.md) for a complete example of a host that sleeps between readings.

## Update Your `hub.set` Configuration {#update-your-hub-set-configuration}

Throughout this tutorial, you've used several configuration settings that are typically only appropriate for a Notecard running on mains power.

- In the `hub.set` request, setting `mode` to `"continuous"` tells the Notecard to maintain an active network connection.

- In the `note.add` request, setting `sync` to `true` tells the Notecard to immediately synchronize all outbound Notes to Notehub.

- Your firmware takes a new sensor reading every 30 seconds.

Because each of these settings causes the Notecard to use more power, you may wish to disable them if you plan to transition your project to battery power. Optionally complete the steps below to switch to a more typical setup for a battery-powered Notecard.

1. Update your existing `hub.set` request. Setting `mode` to `"periodic"` tells the Notecard to connect on a schedule rather than holding a connection open, and the `outbound` and `inbound` intervals control how many minutes it waits before syncing in each direction. Remove the `duration` argument, which only applies in `continuous` mode.

   ```python
   req = {"req": "hub.set"}
   req["product"] = productUID
   req["mode"] = "periodic"
   req["outbound"] = 60
   req["inbound"] = 360
   card.Transaction(req)
   ```

2. In your `note.add` request, change `sync` from `true` to `false`, so each reading waits for the next scheduled sync instead of triggering one of its own.

   ```python
   req["sync"] = False
   ```

3. Save your changes and load the updated firmware onto your device.

   Stop `sensors.py` if it's still running, then start it again with `python3 sensors.py`.

4. Finally, slow down how often you take readings. A reading every 30 seconds is handy while you're learning, because new data shows up in Notehub almost right away, but it's far more often than most real products need.

   In Notehub, update your `reading_interval_secs` environment variable in Notehub to `1800` (30 minutes). Because your firmware reads its interval from Notehub, you don't need to reflash your device to make the change.

tip

- For a deeper look at how the `hub.set` request’s settings work together, watch [An In-Depth Guide to Notecard’s hub.set Request](https://www.youtube.com/watch?v=3D2p1t8UMHQ). The video steps through complete configuration scenarios that show how your choice of `mode`, `outbound`, `inbound`, and `sync` values determines exactly when your Notecard connects and syncs with Notehub.

- For other recommendations when building low-power friendly firmware, see [Low-Power Firmware Design](https://dev.blues.io/notecard/notecard-walkthrough/low-power-firmware-design.md).

AI Tip

LLMs can also help you get your configuration right.

Prompt

Review the Blues recommendations for the `hub.set` request at `https://dev.blues.io/notecard/notecard-walkthrough/essential-requests/#notehub-configuration-hub-set`. Then help me get my own `hub.set` configuration right in my firmware based on what you know about my project. Ask me questions to gather more information as necessary.

## Next Steps {#next-steps}

**Congratulations!** You've successfully connected your Raspberry Pi to your Notecard and built a basic IoT project.

tip

**Leave your device running.** The next tutorial uses the temperature, humidity, and session data your device is sending right now, and the more it has collected by the time you get there, the more interesting your questions can be. Keep your Notecard powered and connected until you've finished the final quickstart tutorial.

If you're following a Cell+WiFi Quickstart, next we recommend learning how to ask questions about the data your device is collecting:

1. ~~Use Notecard to Send Data~~

2) ~~Wire Notecard to Your Host~~

3. ~~Build Your First IoT App With Blues~~
4. [Explore Your Data With Notehub IQ](https://dev.blues.io/guides-and-tutorials/using-notehub-iq.md)

At any time, if you find yourself stuck, please reach out on the [community forum](https://discuss.blues.com/).

Can we improve this page? [Send us feedback](mailto:devrel@blues.com)
