# Stream iPhone Sensor Data to Adafruit IO

## Overview

Sending your&nbsp;iPhone or iPad sensor data to [Adafruit IO](https://io.adafruit.com) is a great way to visualize your sensor data and also connect to an IO project from your mobile device. Adafruit IO also provides UI elements like sliders, charts, buttons, and switches to help you with your IoT (Internet of things) projects without extra programming.

![](https://cdn-learn.adafruit.com/assets/assets/000/049/675/medium800/projects_dashboard.png?1514333756)

Info: 

In this guide, I'll take you through the steps necessary to stream your iOS iPhone or iPad sensor data to Adafruit IO using the&nbsp; **Swift&nbsp;** programming language. iOS mobile devices contains a handful of sensors such as&nbsp;[Gyroscopic sensors](https://en.wikipedia.org/wiki/IPhone#Gyroscopic_sensor), a&nbsp;[Barometer](https://en.wikipedia.org/wiki/IPhone#Barometer), [Magnetometer](https://en.wikipedia.org/wiki/IPhone#Magnetometer)&nbsp;and much more. In this guide we'll be sending our&nbsp;[Accelerometer sensor&nbsp;](https://en.wikipedia.org/wiki/IPhone#Accelerometer)data to our Adafruit IO account feed.&nbsp;This guide doesn't require an extensive knowledge of Swift.&nbsp;

For reference, this guide provides an example app called&nbsp; **IO Connect Example**. This example app&nbsp;sends your iPhone accelerometer sensor data to Adafruit IO.

## In this learn guide we will:

• Setup an iOS app project in Xcode.

If you don't have Xcode installed on your Mac computer, check out the&nbsp;[Installing Xcode](../../../../introduction-to-ios-development?view=all#installing-xcode)&nbsp;portion of the [Introduction to iOS Development](../../../../introduction-to-ios-development?view=all) learn guide.

•&nbsp;Create a function that helps display accelerometer data updates and a function to stop updates.

• Learn about REST to make a POST request with the REST API.&nbsp;

• We'll set up labels in the main.storyboard to display your accelerometer data. We will also add a switch to start and stop updates.

Your completed project will consist of an iOS app that sends our iPhone or iPad&nbsp;Accelerometer sensor data to Adafruit IO using a **HTTP**"POST" request and **JSONSerialization**.

## Before we start...

• Make sure your **Xcode IDE** is up-to-date ( **version 8.3.3 or newer** )

• While in Xcode, make sure the **development target is set to 10.3** or higher.

• If you haven't setup your **Adafruit IO account** with a **Feed** and **Dashboard** , you should do so before beginning the guide.

If you're not familiar or if you need help getting started with Adafruit IO, check out our learn guide:

[Get started with Adafruit IO](../../../adafruit-io/getting-started?view=all)

# Downloading IO Connect Example

You can download the project here:

[Download IO Connect Example](https://github.com/adafruit/IO-Connect-Example/archive/master.zip)
Once the file is downloaded, locate and click on the&nbsp; **IO Connect Example.xcodeproj** &nbsp;file and it will open up the project in Xcode.

Once we have the project open, select your iOS device's **scheme** &nbsp;in **Xcode**.

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/044/436/medium800/projects_gui.png?1501256746)

Now just press the **Run** button to test the app on your iOS device.

![](https://cdn-learn.adafruit.com/assets/assets/000/044/437/medium800/projects_feather_www.png?1501257320)

If all goes well, the **IO Connect Example** &nbsp;app will run on your iOS device and you'll be able to use the app as a reference while you explore the guide.

- [Next Page](https://learn.adafruit.com/stream-iphone-ios-sensor-data-to-adafruit-io/getting-started.md)

## Featured Products

### Swift - Skill badge, iron-on patch

[Swift - Skill badge, iron-on patch](https://www.adafruit.com/product/1964)
You love the language, you love the layout options, so now it's time to proudly show off the logo with our **Swift** badge!  
  
Swift is a programming language that works great with iOS apps and with Cocoa and Cocoa touch. It works side-by-side with Objective-C and has...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1964)
[Related Guides to the Product](https://learn.adafruit.com/products/1964/guides)

## Related Guides

- [Adafruit ENS160 MOX Gas Sensor](https://learn.adafruit.com/adafruit-ens160-mox-gas-sensor.md)
- [Adafruit IO Basics: Temperature & Humidity](https://learn.adafruit.com/adafruit-io-basics-temperature-and-humidity.md)
- [Adafruit TLV493 Triple-Axis Magnetometer](https://learn.adafruit.com/adafruit-tlv493-triple-axis-magnetometer.md)
- [Adafruit Simple Soil Moisture Sensor](https://learn.adafruit.com/adafruit-simple-soil-moisture-sensor.md)
- [NXP Precision 9DoF Breakout](https://learn.adafruit.com/nxp-precision-9dof-breakout.md)
- [Geofencing with the FONA 808 & Adafruit IO](https://learn.adafruit.com/geofencing-with-the-fona-808-and-adafruit-io.md)
- [Raspberry Pi Pedal for Youtube](https://learn.adafruit.com/raspberry-pi-pedal-for-youtube.md)
- [Motion-Activated Solder Fume Extractor With Lamp](https://learn.adafruit.com/motion-activated-solder-fume-extractor-with-lamp.md)
- [Skill Badge Requirements: Solar](https://learn.adafruit.com/skill-badge-requirements-solar.md)
- [Fog Machine with Motion Sensor and Adafruit IO](https://learn.adafruit.com/fog-machine-remote-trigger.md)
- [Cloud-Connected Weather Station with the Arduino Yun & Temboo](https://learn.adafruit.com/cloud-connected-weather-station-with-the-arduino-yun-and-temboo.md)
- [Analog Devices ADXL343 Breakout Learning Guide](https://learn.adafruit.com/adxl343-breakout-learning-guide.md)
- [Adafruit TDK InvenSense ICM-20948 9-DoF IMU](https://learn.adafruit.com/adafruit-tdk-invensense-icm-20948-9-dof-imu.md)
- [Mystery Box: Shutterglass Chamber](https://learn.adafruit.com/shutterglass-chamber.md)
- [WiFi-Controlled NeoPixel Matrix LED Sign](https://learn.adafruit.com/iot-led-sign.md)
