# Arduino Import Integration [Arduino](https://www.arduino.cc/) is a popular open-source platform used for building digital devices and interactive objects that can sense and control objects in the physical and digital world. You can collect a lot of device information on Arduino. You can then deliver the collected data to Treasure Data Service, which performs data management as part of the Pelion IoT platform. You’ll need to determine the architecture that best supports your IoT implementation with Arduino and Treasure Data. The following illustrations show typical architectural examples. ![](/assets/image-20191021-201234.ad7ebe834c8489b15e9ff48412b2bb73e4beade35f7c7b8e1f20960a4f6bec09.6953d675.png) You can connect to an Arduino device with HTTPS directly to Treasure Data by using a Wi-Fi connection. The project page is here: [https://create.arduino.cc/editor/JunkoNakajima/0482174c-3beb-4561-a2cc-df79eeba25fd/preview](https://create.arduino.cc/editor/JunkoNakajima/0482174c-3beb-4561-a2cc-df79eeba25fd/preview) The program is tested on [ARDUINO MKR WIFI 1010](https://store.arduino.cc/usa/arduino-mkr-wifi-1010). # Prerequisites - Treasure Data Account ([contact us](https://www.treasuredata.com/custom-demo/) if you have an interest in IoT Platform) - Arduino Account - ([Sign-up](https://create.arduino.cc/) if you don’t have an account) - Arduino Device (for example, [ARDUINO MKR WIFI 1010](https://store.arduino.cc/usa/arduino-mkr-wifi-1010)) - Sensors you want to monitor (for example a temperature sensor) ![](/assets/image2020-11-20_14-11-11.a43f837e276bfa137e79e6df247f05594bebb22dfa18add5a1f57083c995338e.6953d675.png) # Build a Project in Arduino Online Build the project you want to import in Arduino Online. # Import Import the example project into your workspace. Visit the [Create in Arduino](https://create.arduino.cc/editor/JunkoNakajima/0482174c-3beb-4561-a2cc-df79eeba25fd/preview) page, as shown in the following image, and select **Add To My Sketchbook**. ![](/assets/image-20191021-201303.802e3da64581bfbd4e17914bb4590177ba3fa85cf584158ff59e5b0da99b7b07.6953d675.png) The program is imported into your online editor. # Configure Parameters You must set three parameters (SECRET_SSID and SECRET_PASS, and SECRET_TD_API_KEY). Set the parameters in the SECRET tab from the imported project. - SECRET_SSID: Your Wifi SSID - SECRET_PASS: Your Wifi Password - SECRET_TD_API_KEY: Your Treasure Data Account (See [here](https://docs.treasuredata.com/smart/project-product-documentation/getting-your-api-keys)) ![](/assets/image-20191021-201336.2c586ab23821f7b979df5866235d888c98d26a1cb3622c4d432ff071ac332cf7.6953d675.png) Then, edit Database, Table from "iot_test/arduino" to "/" in *MKRWIFI1010_to_TD* sketch. ![](/assets/image-20191001-191039.fbb810249e8a21a8032fbb3725c441a31bb221f0ab9938ac637bbbc444ef568e.6953d675.png) In the Device Set up section in *MKRWIFI1010_to_TD* sketch, change *tempPin* and *get_temprature* function if you use different sensors. ![](/assets/image-20191021-201354.dd668adb21107a9a28ce74a2e8e940576fbd6717db3a5be70739c58400d5fed1.6953d675.png) # Launch Application Ensure the device that you want to monitor is connected (via WIFI) to your PC. The device must be connected before you verify. Finally, verify your application, and upload the verified application to your Arduino. You can see records, delivered from your Arduino, in Treasure Data. ![](/assets/image-20191021-201405.3877a7f82bcb81f8a97bf727599fb2d81df8ea7d3bb9ed2559c47b0dd5337ee9.6953d675.png)