{"id":535,"date":"2017-08-09T13:19:03","date_gmt":"2017-08-09T12:19:03","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=535"},"modified":"2017-10-31T23:33:12","modified_gmt":"2017-10-31T23:33:12","slug":"801s-wide-range-vibration-detection-sensor-review-code-examples","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/535\/801s-wide-range-vibration-detection-sensor-review-code-examples\/","title":{"rendered":"801S Wide Range Vibration Detection Sensor Review and code examples"},"content":{"rendered":"<p>This post reviews the 801S wide range vibration detection sensor. Here I review and test the sensor and provide code to use it.<\/p>\n<p><!--more--><\/p>\n<h2>Overview of the Vibration sensor<\/h2>\n<p><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"550\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/535\/801s-wide-range-vibration-detection-sensor-review-code-examples\/801s_vibration_sensor_no_text\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.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=\"801S_vibration_sensor_no_text\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg?fit=300%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg?fit=678%2C678&amp;ssl=1\" class=\"alignleft wp-image-550\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg?resize=300%2C300\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg?resize=768%2C768&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_no_text.jpg?resize=50%2C50&amp;ssl=1 50w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>This sensor detects small movements and reports this back as either an analogue or digital signal.<\/p>\n<p>This doesn&#8217;t provide any numerically measurable values but provides a relative\u00a0signal of the current vibration level. A sensor at this price range wouldn&#8217;t be expected to do this so it does not detract from the sensor.<\/p>\n<p>As noted above this sensor provides two possible outputs. The first is an analogue signal that varies between 0 and 5 volts. This represents the relative level of motion where 0 \u00a0represents no motion detected. The second is a digital output that goes high when a specific level is reached. This can be configured by the blue potentiometer on the sensor.<\/p>\n<p>The digital output can be useful if no processing of the analogue sensor is performed and you just need to toggle something. If you are able to process the analogue sensor you can get a lot more information and dynamically change the threshold that you act on which can be an advantage.<\/p>\n<h2>Wiring it up to an Arduino<\/h2>\n<p><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"536\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/535\/801s-wide-range-vibration-detection-sensor-review-code-examples\/801s_vibration_sensor_bb\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?fit=1061%2C843&amp;ssl=1\" data-orig-size=\"1061,843\" 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=\"801S_vibration_sensor_bb\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?fit=300%2C238&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?fit=678%2C539&amp;ssl=1\" class=\"alignleft wp-image-536\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?resize=400%2C318\" alt=\"\" width=\"400\" height=\"318\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?w=1061&amp;ssl=1 1061w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?resize=300%2C238&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?resize=1024%2C814&amp;ssl=1 1024w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?resize=768%2C610&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/801S_vibration_sensor_bb.png?resize=50%2C40&amp;ssl=1 50w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>For my experiments I will be using the analogue output to log the level of vibration\u00a0that the sensor detects over a period of time. I will use this data to form the basis of my review.<\/p>\n<p>As shown on the left I have wired up the <code>+<\/code>\u00a0on the sensor to the 5 volts on the Arduino. The <code>-<\/code> has been connected to the GND wire.<\/p>\n<p>I have also attached the <code>Aout<\/code>\u00a0output to the first analogue port on the Arduino to log the data received from the sensor.<\/p>\n<h2>Programming the Arduino<\/h2>\n<p>To log the data from the Arduino you need to read from the analogue sensor. The below code reads and logs the output to the serial connection.<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n#define VIBRATION_ANALOGUE_PORT 0\r\n\r\nint motionSensorval = 0;\r\n\r\nvoid setup() {\r\n    Serial.begin(115200);\r\n}\r\n\r\nvoid loop() {\r\n    motionSensorval = analogRead(VIBRATION_ANALOGUE_PORT);\r\n    Serial.print(&quot;Motion sensor value :&quot;);\r\n    Serial.println(motionSensorval);\r\n    delay(200);\r\n}\r\n<\/pre>\n<p>I define <code>VIBRATION_ANALOGUE_PORT<\/code> as a const as this value will never change. This has speed improvements over defining it as an int (although very minor). These speed improvements come from the fact the compiler can inline the variable (essentially performs find and replace) before runtime. This then removes a section of memory that would be needed to store the int. When your programs become larger and space becomes an issue on the Arduino these optimisations can become important.<\/p>\n<p>In addition to this in the main scope of the program I define <code>motionSensorval<\/code> to hold the value obtained from the analogue read.<\/p>\n<h2>Taking some data measurements<\/h2>\n<p><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"541\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/535\/801s-wide-range-vibration-detection-sensor-review-code-examples\/graphed_vibration_data\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?fit=815%2C615&amp;ssl=1\" data-orig-size=\"815,615\" 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=\"graphed_vibration_data\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?fit=300%2C226&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?fit=678%2C512&amp;ssl=1\" class=\"alignleft wp-image-541\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?resize=500%2C377\" alt=\"\" width=\"500\" height=\"377\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?w=815&amp;ssl=1 815w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?resize=300%2C226&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?resize=768%2C580&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/graphed_vibration_data.png?resize=50%2C38&amp;ssl=1 50w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>I changed my recording code to run over a very short period and log the data. Once I uploaded the code I moved the sensor for a period of time to create some data.<\/p>\n<p>From looking at the graph on the left I can see that the sensor returns to 0 easily with no issues.<\/p>\n<p>In addition to this when I move the sensor a large amount it reports the highest value (1023).<\/p>\n<p>Since the sensor easily returns to 0 and can reach the maximum value of 1023 this suggests it is configured correctly.<\/p>\n<p>This was logging an analogue value every millisecond and you can see that it sometimes takes a couple millseconds to return to a base value.<\/p>\n<p>Since this sensor is very fast to return to a base value to ensure it detects very fast movements you may want to consider polling the sensor frequently. Depending on the speed of the motion even with a relatively low poll time (once every second) you might miss fast motion.<\/p>\n<h2>Final Review<\/h2>\n<p>This sensor works well to detect small motions that would be ideal to check if something has been moved. The addition of both a digital and analogue output is helpful in cases where you only care when it has reached a specific value.<\/p>\n<p>The only downside of this sensor is that because the movement period can be very small to ensure all movement is tracked the polling time may need to be small (&lt; 1 second). However this does not detract from the sensor since it is only important in the event you must detect all movement however short their period. Even in this case the solution is to poll as fast as your requirements are which isn&#8217;t too problematic.<\/p>\n<p>All in all this is a very nice and cheap movement sensor that I would definitely buy again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post reviews the 801S wide range vibration detection sensor. Here I review and test the sensor and provide code to use it.<\/p>\n","protected":false},"author":1,"featured_media":545,"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,151],"class_list":["post-535","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","tag-arduino","tag-arduino-sensor","tag-sensor","tag-vibration-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\/801S_vibration_sensor_text.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-8D","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":724,"url":"https:\/\/chewett.co.uk\/blog\/724\/sw-420-motion-vibration-sensor-review-code-examples\/","url_meta":{"origin":535,"position":0},"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":1854,"url":"https:\/\/chewett.co.uk\/blog\/1854\/using-the-801s-wide-range-vibration-detection-sensor-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":535,"position":1},"title":"Using the 801S Wide Range Vibration Detection Sensor with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"March 9, 2019","format":false,"excerpt":"In this blog post I talk about how you can use a 801S Wide Range Vibration Detection sensor with a WeMos D1 Mini (ESP8266) using the Arduino IDE. Summary of the\u00a0801S Wide Range Vibration Detection sensor This vibration sensor works by the sensor changing resistance as motion is detected. This\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\/801s_vibration_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\/03\/801s_vibration_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/03\/801s_vibration_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\/03\/801s_vibration_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":721,"url":"https:\/\/chewett.co.uk\/blog\/721\/sw-18010p-motion-vibration-sensor-review-code-examples\/","url_meta":{"origin":535,"position":2},"title":"SW-18010P Motion Vibration Sensor review and code examples","author":"Chewett","date":"December 6, 2017","format":false,"excerpt":"This post reviews the\u00a0SW-18010P motion vibration sensor. Here I review, test and provide code to use the sensor. Overview of the Vibration Sensor The SW-18010P vibration sensor is a small spring inside a metal casing. As the sensor vibrates or moves the spring will make contact with the metal casing\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\/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\/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\/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\/vibration_sensor_post_icon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1856,"url":"https:\/\/chewett.co.uk\/blog\/1856\/using-the-sw-18010p-motion-vibration-sensor-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":535,"position":3},"title":"Using the SW-18010P Motion Vibration Sensor with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"February 2, 2019","format":false,"excerpt":"In this blog post I talk about how you can use a SW-18010P Motion Vibration sensor with a WeMos D1 Mini (ESP8266) using the Arduino IDE. Summary of the SW-18010P Motion Vibration sensor This motion sensor works by encasing a small spring inside a metal casing. Whenever the sensor moves\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\/02\/sw18010p_vibration_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\/02\/sw18010p_vibration_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/02\/sw18010p_vibration_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\/02\/sw18010p_vibration_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1849,"url":"https:\/\/chewett.co.uk\/blog\/1849\/using-the-sw-420-motion-vibration-sensor-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":535,"position":4},"title":"Using the SW-420 Motion Vibration Sensor with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"December 22, 2018","format":false,"excerpt":"In this blog post I talk about how you can use a SW-420 Motion Vibration sensor with a WeMos D1 Mini (ESP8266) using the Arduino IDE. Summary of the SW-420 Motion Vibration Sensor This sensor mounts a motion detection component with a small micro-controller and a potentiometer. This has a\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\/2018\/12\/sw420_vibration_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\/2018\/12\/sw420_vibration_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/12\/sw420_vibration_sensor_wemos.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/12\/sw420_vibration_sensor_wemos.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":535,"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\/535","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=535"}],"version-history":[{"count":10,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"predecessor-version":[{"id":828,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/535\/revisions\/828"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/545"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}