{"id":128,"date":"2015-09-20T03:31:30","date_gmt":"2015-09-20T03:31:30","guid":{"rendered":"https:\/\/einhugur.com\/blog\/?page_id=128"},"modified":"2021-04-15T13:18:06","modified_gmt":"2021-04-15T13:18:06","slug":"dht11-and-dht22-humidity-temperature-sensors-3-pin-version","status":"publish","type":"page","link":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/dht11-and-dht22-humidity-temperature-sensors-3-pin-version\/","title":{"rendered":"DHT11 and DHT22 humidity &#038; temperature sensors (3 pin version)"},"content":{"rendered":"<p>In this example we are going to connect\u00a0to DHT11 and or DHT22 humidity &amp; temperature sensor. This sensor reads both the humidity and temperature.<\/p>\n<p><span style=\"color: #808080;\">(This guide was updated on 24. Oct 2015, greatly improving the DHT11 device driver code and added DHT22 device driver code and wiring pictures for the DHT22)<\/span><\/p>\n<p>The\u00a0DHT22 has higher resolution but similar\u00a0protocol. \u00a0The DHT22 sensor is far superior over\u00a0the DHT11, it gives far better and more correct readings and handles negative temperature as well.<\/p>\n<p>Note that many types of those sensors exist, I had a 3 pin type, they also exist with 4 pins.<\/p>\n<p><strong>Disclaimer:<\/strong><\/p>\n<p>We do not take any responsibility for possible errors in the guide or errors that you might do wiring it up. Incorrect wiring can result in damaged sensor or damaged Raspberry PI.<\/p>\n<p><strong>Pieces we use are:<\/strong><\/p>\n<ul>\n<li>Raspberry PI 2<\/li>\n<li>Cobbler and Cobbler cable<\/li>\n<li>DHT11 or DHT22<span style=\"color: #999999;\">\u00a0(They go as low as $4.91 for 5 pieces ($0.98 a piece)\u00a0on Aliexpress where I got this one. The far nicer DHT22 sensor costs about $3.45 a piece. The DHT22 tends to cost a little bit more but if you want good data then go DHT22<\/span><\/li>\n<li><a href=\"https:\/\/github.com\/xojo\/GPIO\">Wiring PI Xojo module from\u00a0Paul Lefebvre<\/a><\/li>\n<\/ul>\n<p><strong>First thing is connecting the sensor:<\/strong><\/p>\n<p>For the DHT11 then wiring was as follows:<\/p>\n<figure id=\"attachment_130\" aria-describedby=\"caption-attachment-130\" style=\"width: 225px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/DHT11-Sensor-e1442717878879.jpg?ssl=1\"><img data-attachment-id=\"130\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/dht11-and-dht22-humidity-temperature-sensors-3-pin-version\/dht11-sensor\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT11-Sensor-e1442717878879.jpg?fit=480%2C640&amp;ssl=1\" data-orig-size=\"480,640\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1442716981&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;125&quot;,&quot;shutter_speed&quot;:&quot;0.033333333333333&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;6&quot;}\" data-image-title=\"DHT11 sensor\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT11-Sensor-e1442717878879.jpg?fit=225%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT11-Sensor-e1442717878879.jpg?fit=474%2C632&amp;ssl=1\" loading=\"lazy\" class=\"size-medium wp-image-130\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/DHT11-Sensor-e1442717878879-225x300.jpg?resize=225%2C300&#038;ssl=1\" alt=\"DHT11 sensor\" width=\"225\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT11-Sensor-e1442717878879.jpg?resize=225%2C300&amp;ssl=1 225w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT11-Sensor-e1442717878879.jpg?w=480&amp;ssl=1 480w\" sizes=\"(max-width: 225px) 100vw, 225px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-130\" class=\"wp-caption-text\">DHT11 sensor<\/figcaption><\/figure>\n<ul>\n<li><span style=\"color: #808080;\">(5V)<\/span>\u00a0Red is the 5V input &#8211; I always use red for the power input.<\/li>\n<li><span style=\"color: #808080;\">(GPIOX)<\/span>\u00a0Yellow is the Data pin, it was marked S on the sensor.<\/li>\n<li><span style=\"color: #808080;\">(GND)<\/span>\u00a0Blue is the ground, it was marked &#8211; on the sensor.<\/li>\n<\/ul>\n<p>Be sure to check the markings on your sensor as there are a lot of types of this particular sensor.<\/p>\n<p><span style=\"color: #808080;\">Spec on the DHT11:\u00a0<\/span><\/p>\n<ul>\n<li><span style=\"color: #808080;\">The working voltage of 3.3V to 5V<\/span><\/li>\n<li><span style=\"color: #808080;\">Measurement Range\uff1a Humidity 20-90%RH\uff0c Temperature 0~50\u2103<\/span><\/li>\n<li><span style=\"color: #808080;\">Accuracy\uff1a Humidity +-5%RH\uff0c Temperature +-2\u2103<\/span><\/li>\n<li><span style=\"color: #808080;\">Resolution\uff1a Humidity\u00a0 1%RH\uff0c Temperature\u00a0 1\u2103<\/span><\/li>\n<li><span style=\"color: #808080;\">Can be polled once every second<\/span><\/li>\n<\/ul>\n<p>For the DHT22\u00a0that I had then it was as follows:<\/p>\n<figure id=\"attachment_340\" aria-describedby=\"caption-attachment-340\" style=\"width: 472px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?ssl=1\"><img data-attachment-id=\"340\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/dht11-and-dht22-humidity-temperature-sensors-3-pin-version\/dht22\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?fit=472%2C514&amp;ssl=1\" data-orig-size=\"472,514\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"DHT22 sensor\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?fit=275%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?fit=472%2C514&amp;ssl=1\" loading=\"lazy\" class=\"size-full wp-image-340\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?resize=472%2C514&#038;ssl=1\" alt=\"DHT22 sensor\" width=\"472\" height=\"514\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?w=472&amp;ssl=1 472w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?resize=275%2C300&amp;ssl=1 275w\" sizes=\"(max-width: 472px) 100vw, 472px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-340\" class=\"wp-caption-text\">DHT22 sensor<\/figcaption><\/figure>\n<ul>\n<li><span style=\"color: #808080;\">(5V)<\/span>\u00a0Red is the 5V input &#8211; I always use red for the power input.<\/li>\n<li><span style=\"color: #808080;\">(GPIOX)<\/span>\u00a0Yellow is the Data pin, it was marked Out on the sensor. <span style=\"color: #808080;\">(I could not make out what it was trying to say on front but when turning it around then it says &#8220;Out&#8221;)<\/span><\/li>\n<li><span style=\"color: #808080;\">(GND)<\/span>\u00a0Blue is the ground, it was marked &#8211; on the sensor.<\/li>\n<\/ul>\n<p><span style=\"color: #808080;\">Spec on the DHT22:\u00a0<\/span><\/p>\n<ul>\n<li><span style=\"color: #808080;\">Measurement Range: Humidity 0-100%RH, temperature -40~80\u2103<\/span><\/li>\n<li><span style=\"color: #808080;\">Accuracy: Humidity \u00b12~5%RH, temperature \u00b10.5\u2103<\/span><\/li>\n<li><span style=\"color: #808080;\">Resolution: Humidity\u00a0 0.1%RH, temperature\u00a0 0.1\u2103\u00a0<\/span><\/li>\n<li><span style=\"color: #808080;\">Can be polled once every 2 seconds<\/span><\/li>\n<\/ul>\n<p><strong>Connecting to the Cobbler:<\/strong><\/p>\n<p>Make sure your Raspberry PI is not powered on when you do the connections.<\/p>\n<figure id=\"attachment_80\" aria-describedby=\"caption-attachment-80\" style=\"width: 225px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628.jpg?ssl=1\"><img data-attachment-id=\"80\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hc-sr501-sensor\/sensor-connection\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628.jpg?fit=480%2C640&amp;ssl=1\" data-orig-size=\"480,640\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1442662628&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;64&quot;,&quot;shutter_speed&quot;:&quot;0.033333333333333&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;6&quot;}\" data-image-title=\"Cobbler\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628.jpg?fit=225%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628.jpg?fit=474%2C632&amp;ssl=1\" loading=\"lazy\" class=\"size-medium wp-image-80\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628-225x300.jpg?resize=225%2C300&#038;ssl=1\" alt=\"Cobbler for Raspberry PI\" width=\"225\" height=\"300\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628.jpg?resize=225%2C300&amp;ssl=1 225w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628.jpg?w=480&amp;ssl=1 480w\" sizes=\"(max-width: 225px) 100vw, 225px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-80\" class=\"wp-caption-text\">Cobbler for Raspberry PI<\/figcaption><\/figure>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?ssl=1\"><img data-attachment-id=\"82\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hc-sr501-sensor\/gpio-header\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?fit=440%2C870&amp;ssl=1\" data-orig-size=\"440,870\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"GPIO Header\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?fit=152%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?fit=440%2C870&amp;ssl=1\" loading=\"lazy\" class=\"size-medium wp-image-82 alignnone\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header-152x300.png?resize=152%2C300&#038;ssl=1\" alt=\"GPIO Header\" width=\"152\" height=\"300\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?resize=152%2C300&amp;ssl=1 152w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?w=440&amp;ssl=1 440w\" sizes=\"(max-width: 152px) 100vw, 152px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p style=\"text-align: left;\"><strong>In my example then I have it connected as follows:<\/strong><\/p>\n<ul>\n<li style=\"text-align: left;\">Red to pin 2 (5V)<\/li>\n<li style=\"text-align: left;\">Blue to pin 25 (GND)<\/li>\n<li style=\"text-align: left;\">Yellow to GPIO 6\u00a0which is pin 31.<\/li>\n<\/ul>\n<p><strong>The complex protocol this sensor uses<\/strong><\/p>\n<p>Data pin is pulled down to low for at least 10ms to send start signal to the sensor. Then pin is put to high for 40 microseconds.<\/p>\n<p>The sensor will pull down the pin to low for 80 ms, and then back up to high for 80 ms before sending the actual data.<\/p>\n<p>Then it starts sending the data where every bit starts with 50 microsecond LOW, then the time length of the HIGH\u00a0determines if its 0 or 1.<\/p>\n<p>DHT11 and DHT22 use the bits a little bit differently see the Xojo modules for the code of that.<\/p>\n<p><strong>The Xojo code:<\/strong><\/p>\n<p>Interfacing with this sensor is complex, and it felt as if I was writing a device driver.<\/p>\n<p>Our syntax highlighter tends to mess up the code so I will include the Xojo modules that act as device drivers as links here.<\/p>\n<p><a href=\"http:\/\/www.einhugur.com\/Downloads\/GPIOModules\/DHT11.xojo_binary_code\">Module for DHT11<\/a><\/p>\n<p><a href=\"http:\/\/www.einhugur.com\/Downloads\/GPIOModules\/DHT22.xojo_binary_code\">Module for DHT22<\/a><\/p>\n<p>In the Open event of my window I placed this code:<\/p>\n<pre lang=\"xojo\">Sub Open()\n  GPIO.SetupGPIO\nEnd Sub\n<\/pre>\n<p>I put this code on button:<\/p>\n<pre lang=\"xojo\">Sub Action()\n Dim result as Integer\n Dim humidity as Single\n Dim temperature as Single\n \n result = DHT22.ReadSensor(6,humidity,temperature)\n \n if result = 0 then\n MsgBox \"Humidity = \" + Format(humidity,\"#.0\") + \" % -- Temperature: \" + Format(temperature,\"#.0\") + \" \u2103\"\n elseif result = -1 then\n MsgBox \"Timeout error\"\n elseif result = -2 then\n MsgBox \"Checksum error\"\n end if\nEnd Sub\n<\/pre>\n<p>For DHT11, just change the DHT22 to DHT11 in the code above and use the DHT11 module in your project.<\/p>\n<p>Note that this sensor will have timeouts and checksum errors at times. Then you just call for new reading on it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this example we are going to connect\u00a0to DHT11 and or DHT22 humidity &amp; temperature sensor. This sensor reads both the humidity and temperature. (This guide was updated on 24. Oct 2015, greatly improving the DHT11 device driver code and added DHT22 device driver code and wiring pictures for the DHT22) The\u00a0DHT22 has higher resolution &hellip; <a href=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/dht11-and-dht22-humidity-temperature-sensors-3-pin-version\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">DHT11 and DHT22 humidity &#038; temperature sensors (3 pin version)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":94,"menu_order":60,"comment_status":"open","ping_status":"closed","template":"","meta":{"spay_email":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd75nk-24","jetpack-related-posts":[{"id":108,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/f85-vibration-sensor\/","url_meta":{"origin":128,"position":0},"title":"F85 Vibration sensor","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to\u00a0vibration sensor. This example is super easy after doing the infrared motion detection with the HC-SR501 in a previous example, since basically same code will work. I found this sensor to be excellent, it gives readings when I expect it to and\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":137,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/ir-infrared-obstacle-reflection-photoelectric-sensor\/","url_meta":{"origin":128,"position":1},"title":"IR Infrared Obstacle Reflection Photoelectric Sensor","date":"September 20, 2015","format":false,"excerpt":"In this example we are going to connect to infrared obstacle reflection photoelectric sensor motion detection sensor. I am not going to deny it, I find this sensor to be awful rubbish. Without reading the data you can hook it up and see it when the 2nd green lights goes\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/IRSensor-e1442754741492-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":113,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/flame-sensor\/","url_meta":{"origin":128,"position":2},"title":"Flame sensor","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to flame\u00a0sensor. Programming for this sensor works on exactly the same principle as the\u00a0HC-SR501 infrared sensor and the F85 vibration sensor except the signal from this sensor comes inverted. As in it will send 1 when everything is all right and zero\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/FlameSensor-e1442681877884-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":94,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/","url_meta":{"origin":128,"position":3},"title":"Xojo GPIO","date":"September 19, 2015","format":false,"excerpt":"Guides for GPIO in Xojo \u00a0Infrared motion detection (Updated 1. May 2016) Shows\u00a02 ways of coding: Using Interrupts or simple polling. Sensors: \u00a0HC-SR501,\u00a0ST-00082 Mini,\u00a0Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module Uses:\u00a0Basic GPIO Relay board In this example we \u00a0wire up a relay board and let your Xojo\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":165,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hc-sr04-ultrasonic-sensor\/","url_meta":{"origin":128,"position":4},"title":"HC-SR04 and US-015 - Ultrasonic sensors","date":"September 22, 2015","format":false,"excerpt":"In this example we are going to connect to HC-SR04 and or US-015\u00a0ultrasonic sensor. (Updated 18. Oct 2015, adding US-015 sensor and sensor specs) (Updated 18. Apr 2016, adding more info for accuracy for the HC-SR04 sensor) A ultrasonic sensor will send ultrasonic sound out which will echo on objects\u2026","rel":"","context":"Similar post","img":{"alt_text":"Ultrasonic wiring","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/Screen-Shot-2015-09-22-at-00.01.38.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":617,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/","url_meta":{"origin":128,"position":5},"title":"BMP180 Barometer sensor","date":"May 22, 2016","format":false,"excerpt":"In this example we are going to connect to BMP180 barometer sensor, we will be using brake-out board called GY-68. This sensor is really small even the full brake-outboard is only size of a fingernail. The board does not come with the header pins soldered on, but with mine the\u2026","rel":"","context":"Similar post","img":{"alt_text":"BMP180Soldered","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/128"}],"collection":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":11,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/128\/revisions"}],"predecessor-version":[{"id":973,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/128\/revisions\/973"}],"up":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/94"}],"wp:attachment":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}