{"id":558,"date":"2017-09-13T13:00:32","date_gmt":"2017-09-13T12:00:32","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=558"},"modified":"2018-12-27T15:47:25","modified_gmt":"2018-12-27T15:47:25","slug":"ttp223b-capacitive-touch-sensor-review-code","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/558\/ttp223b-capacitive-touch-sensor-review-code\/","title":{"rendered":"TTP223B Capacitive Touch Sensor Review and Code"},"content":{"rendered":"\n<p>The TTP223B Capacitive touch sensor is a button type sensor that allows you to detect when it is being pressed. In this post I review the sensor and provide code and a wiring diagram to use such a sensor.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">What can a Capacitive Touch Sensor do?<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft is-resized\"><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"561\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/558\/ttp223b-capacitive-touch-sensor-review-code\/ttp223b_touch_sensor_main_image\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?fit=800%2C800&amp;ssl=1\" data-orig-size=\"800,800\" 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=\"TTP223B_touch_sensor_main_image\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?fit=300%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?fit=678%2C678&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?resize=310%2C310\" alt=\"\" class=\"wp-image-561\" width=\"310\" height=\"310\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?resize=768%2C768&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_main_image.jpg?resize=50%2C50&amp;ssl=1 50w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The sensor is essentially a button style sensor that detects when it is being pressed. One of the main differences is that it detects the presence of your finger on the sensor. This means that it doesn&#8217;t require any force to activate the button. Classically buttons will be rated to have a specific&nbsp;actuation force (the amount of force required to activate the button).<\/p>\n\n\n\n<p>Depending on your setup using a capacitive touch sensor may aid your design as there is no actuation force needed. This can be useful in situations where pressing a button may stress the circuit board.<\/p>\n\n\n\n<p>This sensor has three standard pins, <code>VCC<\/code>, <code>GND<\/code> and <code>SIG<\/code>. Like a standard button, when it is pressed it will output a high signal on its <code>SIG<\/code>&nbsp;output. The VCC pin will accept voltages from 2 to 5.5 Volts. This level is within most standard projects and developer boards so should be useful in any situations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wiring it up to an Arduino<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"564\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/558\/ttp223b-capacitive-touch-sensor-review-code\/ttp223b_touch_sensor_bb\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?fit=1110%2C1044&amp;ssl=1\" data-orig-size=\"1110,1044\" 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=\"TTP223B_touch_sensor_bb\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?fit=300%2C282&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?fit=678%2C638&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?resize=346%2C325\" alt=\"\" class=\"wp-image-564\" width=\"346\" height=\"325\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?w=1110&amp;ssl=1 1110w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?resize=300%2C282&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?resize=1024%2C963&amp;ssl=1 1024w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?resize=768%2C722&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_bb.jpg?resize=50%2C47&amp;ssl=1 50w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/figure><\/div>\n\n\n\n<p>To test the touch sensor I wired it up to an Arduino Uno.<\/p>\n\n\n\n<p>The sensor is relatively easy to configure as it only requires a signal pin and VCC and GND.<\/p>\n\n\n\n<p>The signal pin (SIG) must be wired up to one of the Arduino&#8217;s digital pins which should be configured as an input pin.<\/p>\n\n\n\n<p>Since the sensor will support between 2.2 and 5 volts you are free to write it up to either the 3.3V or 5V on the Arduino. Here I have wired it up to the 5V line.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code example to read the sensor<\/h2>\n\n\n\n<p>Again since this sensor is a basic button it only requires a simple Arduino sketch to work with it.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\n#define TOUCH_PIN 7\nint touchVal = 0;\n \nvoid setup() {\n   Serial.begin(115200);\n   pinMode(TOUCH_PIN, INPUT);\n}\n \nvoid loop() {\n   touchVal = digitalRead(TOUCH_PIN);\n   Serial.println((touchVal == HIGH ? \"DETECTED!\" : \"Not detected\"));\n   delay(200);\n}\n<\/pre><\/div>\n\n\n<p>Initially, I define the pin that I want to read the sensor from as a <code>#define<\/code>&nbsp;to save using a variable to store this constant. The pin used to read the data has been configured as an input pin.<\/p>\n\n\n\n<p>In the loop I perform a <code>digitalRead<\/code>&nbsp;to see whether someone has touched the sensor. If the sensor value is high I print out &#8220;DETECTED!&#8221;. Instead of just printing out the message detected you could turn on a LED or similar using the below code<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\nif(touchVal == HIGH) {\n    \/\/do something like turn on a LED\n    digitalWrite(13, HIGH); \n}\n<\/pre><\/div>\n\n\n<p>Depending on your situation a ternary if statement (such as the one in the first code section) may be shorter and cleaner to use. However the basic if statement (second code segment) is always more versatile.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the sensor<\/h2>\n\n\n\n<p>During testing I have found that 0.2 second delay between checking should be fast enough to detect a quick tap of the device.<\/p>\n\n\n\n<p>Depending on your use can you will want to test how fast you will want to check the sensor for presence of something pressing it. The above code can easily be modified to change how often the Arduino checks the sensor. If you are also checking other sensors you may want to increase the delay in checking this sensor. However this will mean that to trigger the sensor you will need to press it for longer.<\/p>\n\n\n\n<p>If you only want to detect a long press you could have your delay up to a second or two. This would mean the user would need to place their finger on the device for a couple seconds until it has been detected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Final Review<\/h2>\n\n\n\n<p>As noted above this sensor works well for circuits where a conventional button would not be appropriate. Specifically, in fragile enclosures where physically pressing the button may cause issues over time.<\/p>\n\n\n\n<p>This has no disadvantages that a standard button would not have. The noted issues on choosing the delay between which the Arduino will check to see if it pressed are identical to a standard button.<\/p>\n\n\n\n<p>Overall I would recommend this over a standard button as it allows presses without any force. You are able to just place your finger on the button to trigger it.<\/p>\n\n\n\n<p>Overall I would definitely recommend this sensor to use it in your project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The TTP223B Capacitive touch sensor is a button type sensor that allows you to detect when it is being pressed. In this post I review the sensor and provide code and a wiring diagram to use such a sensor.<\/p>\n","protected":false},"author":1,"featured_media":563,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[97],"tags":[132,131,152,161,160],"class_list":["post-558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","tag-arduino","tag-arduino-sensor","tag-sensor","tag-touch-sensor","tag-ttp223b-capacitive-touch-sensor"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/TTP223B_touch_sensor_article_image.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-90","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1879,"url":"https:\/\/chewett.co.uk\/blog\/1879\/using-the-ttp223b-capacitive-touch-sensor-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":558,"position":0},"title":"Using the TTP223B Capacitive Touch Sensor with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"January 5, 2019","format":false,"excerpt":"In this blog post I talk about how you can use the TTP223B Capacitive Touch sensor with a WeMos D1 Mini (ESP8266) using the Arduino IDE. Summary of the TTP223B Capacitive Touch Sensor The TTP223B capacitive touch sensor works as a standard button. The main difference being that it requires\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/ttp223b_capacitive_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/ttp223b_capacitive_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/ttp223b_capacitive_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/ttp223b_capacitive_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":535,"url":"https:\/\/chewett.co.uk\/blog\/535\/801s-wide-range-vibration-detection-sensor-review-code-examples\/","url_meta":{"origin":558,"position":1},"title":"801S Wide Range Vibration Detection Sensor Review and code examples","author":"Chewett","date":"August 9, 2017","format":false,"excerpt":"This post reviews the 801S wide range vibration detection sensor. Here I review and test the sensor and provide code to use it. Overview of the Vibration sensor This sensor detects small movements and reports this back as either an analogue or digital signal. This doesn't provide any numerically measurable\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_text.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_text.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_text.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_text.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2055,"url":"https:\/\/chewett.co.uk\/blog\/2055\/daorier-sensor-button-switch-input-for-arduino-review-and-code\/","url_meta":{"origin":558,"position":2},"title":"DaoRier sensor button switch input For Arduino Review and Code","author":"Chewett","date":"May 11, 2019","format":false,"excerpt":"This post talks about using the DaoRier sensor button switch input with an Arduino. DaoRier sensor button switch input The DaoRier sensor button switch input is a simple single button trigger. Whenever the button is pressed the signal pin is set to LOW. When the button is not pressed the\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/DaoRier-module-sensor-buttons-switch-input-signal-module_posticon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/DaoRier-module-sensor-buttons-switch-input-signal-module_posticon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/DaoRier-module-sensor-buttons-switch-input-signal-module_posticon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/DaoRier-module-sensor-buttons-switch-input-signal-module_posticon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":724,"url":"https:\/\/chewett.co.uk\/blog\/724\/sw-420-motion-vibration-sensor-review-code-examples\/","url_meta":{"origin":558,"position":3},"title":"SW-420 Motion Vibration Sensor Review and code examples","author":"Chewett","date":"October 25, 2017","format":false,"excerpt":"This post reviews the SW-420 motion vibration sensor. Here I review, test and provide code to use the sensor. Overview of the Vibration Sensor This motion vibration sensor detects small movements and reports this back as a digital signal. This digital signal represents whether there is motion above the configured\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/sw420_vibration_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/sw420_vibration_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/sw420_vibration_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/sw420_vibration_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":714,"url":"https:\/\/chewett.co.uk\/blog\/714\/magnetic-reed-switch-sensor-module-review-and-code-examples\/","url_meta":{"origin":558,"position":4},"title":"Magnetic Reed Switch Sensor Module Review and code examples","author":"Chewett","date":"September 8, 2018","format":false,"excerpt":"This post reviews a\u00a0magnetic reed switch sensor module. There are many of these available on the internet and all\u00a0work similarly using a basic reed switch. Here I review and test the sensor and provide code to use it. Overview of the Magnetic Reed Switch sensor The magnetic reed switch Arduino\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2054,"url":"https:\/\/chewett.co.uk\/blog\/2054\/mq-135-air-quality-and-hazardous-gas-sensor-for-arduino-review-and-code\/","url_meta":{"origin":558,"position":5},"title":"MQ-135 Air Quality and Hazardous Gas Sensor For Arduino Review and Code","author":"Chewett","date":"April 13, 2019","format":false,"excerpt":"This post talks about using the MQ-135 Air Quality and Hazardous Gas sensor with an Arduino. MQ-135 Air Quality and Hazardous Gas Sensor The MQ-135 air quality and hazadous gas sensor is a small unit that reports the relative quality of the air. This specific variant works particularly well with\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/MQ-135-Sensor-Air-Quality-Sensor-Hazardous-Gas-Detection-Module-for-Arduino_posticon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/MQ-135-Sensor-Air-Quality-Sensor-Hazardous-Gas-Detection-Module-for-Arduino_posticon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/MQ-135-Sensor-Air-Quality-Sensor-Hazardous-Gas-Detection-Module-for-Arduino_posticon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/MQ-135-Sensor-Air-Quality-Sensor-Hazardous-Gas-Detection-Module-for-Arduino_posticon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":10,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":1897,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/558\/revisions\/1897"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/563"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}