{"id":856,"date":"2017-12-28T20:12:01","date_gmt":"2017-12-28T20:12:01","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=856"},"modified":"2019-03-28T20:39:50","modified_gmt":"2019-03-28T20:39:50","slug":"learning-arduino-for-beginners-ep23-send-multiple-sensor-readings-to-android-device","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=856","title":{"rendered":"Learning Arduino for beginners EP#23 send multiple sensor readings to Android device"},"content":{"rendered":"<h1>In this tutorial we will take a look at how you can send multiple sensor readings from an Arduino board via Bluetooth to an Android device by building a simple app in MIT App Inventor 2..<\/h1>\n<p><iframe loading=\"lazy\" title=\"Learning Arduino for beginners EP#23 send multiple sensor readings to Android device\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/afHuM34kLm0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h1><\/h1>\n<h1><a href=\"https:\/\/www.facebook.com\/zarduino\/\"><strong>Check us out on Facebook!<\/strong><\/a><\/h1>\n<h1>Links:<\/h1>\n<h2><a href=\"https:\/\/thezhut.com\/?page_id=837\">learning Arduino for beginners EP#21 DHT11 and DHT22 temp and humidity sensor<\/a><\/h2>\n<h2><a class=\"vm-video-title-content yt-uix-sessionlink\" href=\"https:\/\/youtu.be\/t3km2svfL3M\">Why code you copy from a website does not work in your arduino IDE<\/a><\/h2>\n<h2>Schematic:<\/h2>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-851\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx.jpg?w=300\" alt=\"\" width=\"643\" height=\"452\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx.jpg 1218w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx-300x211.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx-768x539.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx-1024x719.jpg 1024w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<h2>MIT APP Inventor 2 blocks:<\/h2>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/blocks1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-857\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/blocks1.png?w=286\" alt=\"\" width=\"637\" height=\"668\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/blocks1.png 940w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/blocks1-286x300.png 286w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/blocks1-768x805.png 768w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<h2>ARDUINO Code:<\/h2>\n<p>#include &lt;SimpleDHT.h&gt;<br \/>\nint pinDHT11 = 6;<br \/>\nSimpleDHT11 dht11;<\/p>\n<p>int lvl;<br \/>\nvoid setup() {<br \/>\nSerial.begin(9600);<br \/>\n}<\/p>\n<p>void loop() {<\/p>\n<p>byte temperature = 0;<br \/>\nbyte humidity = 0;<br \/>\ndht11.read(pinDHT11, &amp;temperature, &amp;humidity, NULL);<br \/>\nSerial.print((int)temperature);<br \/>\nSerial.print(&#8221; C&#8221;);<br \/>\nSerial.print(&#8220;|&#8221;);<br \/>\nSerial.print((int)humidity);<br \/>\nSerial.println(&#8221; %&#8221;);<br \/>\ndelay(5000);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will take a look at how you can send multiple sensor readings from an Arduino board via Bluetooth to an Android device by building a simple app in MIT App Inventor 2.. Check us out on &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=856\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":809,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-856","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=856"}],"version-history":[{"count":3,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/856\/revisions"}],"predecessor-version":[{"id":1282,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/856\/revisions\/1282"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/809"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}