{"id":714,"date":"2018-09-08T13:00:58","date_gmt":"2018-09-08T12:00:58","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=714"},"modified":"2018-09-07T18:58:55","modified_gmt":"2018-09-07T17:58:55","slug":"magnetic-reed-switch-sensor-module-review-and-code-examples","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/714\/magnetic-reed-switch-sensor-module-review-and-code-examples\/","title":{"rendered":"Magnetic Reed Switch Sensor Module Review and code examples"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1513\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/714\/magnetic-reed-switch-sensor-module-review-and-code-examples\/reed_switch_review_code\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?fit=800%2C300&amp;ssl=1\" data-orig-size=\"800,300\" 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=\"reed_switch_review_code\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?fit=300%2C113&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?fit=678%2C254&amp;ssl=1\" class=\"aligncenter size-full wp-image-1513\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?resize=678%2C254\" alt=\"\" width=\"678\" height=\"254\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?resize=768%2C288&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_review_code.jpg?resize=50%2C19&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p id=\"title\" class=\"a-size-large a-spacing-none\">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.<\/p>\n<p><!--more--><\/p>\n<h2>Overview of the Magnetic Reed Switch sensor<\/h2>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"826\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/714\/magnetic-reed-switch-sensor-module-review-and-code-examples\/magnetic_reed_switch_sensor_post_image\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_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=\"magnetic_reed_switch_sensor_post_image\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_image.jpg?fit=300%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_image.jpg?fit=678%2C678&amp;ssl=1\" class=\"alignleft wp-image-826\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_image.jpg?resize=350%2C350\" alt=\"\" width=\"350\" height=\"350\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_image.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_image.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_image.jpg?resize=768%2C768&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/magnetic_reed_switch_sensor_post_image.jpg?resize=50%2C50&amp;ssl=1 50w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>The magnetic reed switch Arduino module shown to the left is one of the many available on the internet. There are a number of minor\u00a0differences in these sensor modules but many are very similar to this one.<\/p>\n<p>I choose this Arduino sensor as it was one of the most common sensors available in this category.<\/p>\n<p>The sensor has three pins, from left to right on the sensor Digital Out (DO), Ground (GND) and input voltage (VCC). When the sensor reaches a specific level of magnetism detected it will output as LOW on the digital out pin.<\/p>\n<p>There are two LED&#8217;s on the board, the right LED is lit when the sensor is powered. If you have connected up the sensor and this is not lit you will want to check your power.<\/p>\n<p>The left LED is lit when the output\u00a0is LOW, LOW represents that there is a level of magnetism higher than the given value set on the potentiometer.<\/p>\n<p>On the right of the sensor there is a blue potentiometer. This can be adjusted to change the level of magnetism needed to trigger the sensor.\u00a0 This allows me to adjust the specific level required to the application.<\/p>\n<h2>Wiring it up to an Arduino<\/h2>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1514\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/714\/magnetic-reed-switch-sensor-module-review-and-code-examples\/reed_switch_bb\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?fit=1155%2C855&amp;ssl=1\" data-orig-size=\"1155,855\" 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=\"reed_switch_bb\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?fit=300%2C222&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?fit=678%2C502&amp;ssl=1\" class=\"alignleft wp-image-1514\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?resize=450%2C333\" alt=\"\" width=\"450\" height=\"333\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?w=1155&amp;ssl=1 1155w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?resize=300%2C222&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?resize=1024%2C758&amp;ssl=1 1024w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?resize=768%2C569&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/reed_switch_bb.jpg?resize=50%2C37&amp;ssl=1 50w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>To test this sensor I am going to wire it up to an Arduino Uno. Shown on the left I am wiring up the connections D0, GND and VCC.<\/p>\n<p>I have wired D0 to the Arduino&#8217;s digital Pin 2 to read in the data from the sensor.<\/p>\n<p>The GND and VCC pins have been connected to the Arduino&#8217;s GND and 5 volt pins respectively.<\/p>\n<p>Once wired up I can turn on the Arduino and adjust the potentiometer to configure when it should turn the digital output low.<\/p>\n<p>Each time you change the situation that the reed switch is designed to activate it is recommended to calibrate it. This is because the amount of magnetism applied to the switch will vary depending on how you are activating it.<\/p>\n<h2>Programming the Arduino<\/h2>\n<p>Since the sensor outputs a basic digital signal we only need a small\u00a0amount of code to check its state. Here I define a variable to hold whether it has detected a magnet. In addition, I define a constant for the Arduino pin I am\u00a0going to connect the <code>DO<\/code> pin on the sensor to.<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">#define REED_IN_PIN 3\r\nint magneticPresence = LOW;\r\n\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n}\r\n\r\nvoid loop() {\r\n  magneticPresence = digitalRead(REED_IN_PIN);\r\n  Serial.println(magneticPresence);\r\n  delay(100);\r\n}<\/pre>\n<p>In the setup\u00a0method I start up the serial so we can output the sensor value. Then in the loop method I read the sensor and output it.<\/p>\n<h2>Final Review<\/h2>\n<p>The reed switch is module is a nice way of detecting a magnetic field. Using this Arduino sensor you can adjust the level in which the digital sensor outputs a positive signal. This is helpful as you can easily calibrate the device using the hardware potentiometer.<\/p>\n<p>A good use of this sensor is to check when a magnet is moved close to the sensor. This can be achieved by placing it on a door or similar which will move into the reed switch.<\/p>\n<p>Overall a very nice little sensor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":1,"featured_media":825,"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":"Today I wrote about how to use a Magnetic Reed Switch #Sensor with the #Arduino to read whether a magnet is present or not.","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,188],"class_list":["post-714","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","tag-arduino","tag-arduino-sensor","tag-reed-switch"],"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\/10\/magnetic_reed_switch_sensor_post_icon.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-bw","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":389,"url":"https:\/\/chewett.co.uk\/blog\/389\/light-intensity-sensor-module-5528-photo-resistor-arduino-review-code\/","url_meta":{"origin":714,"position":0},"title":"Light Intensity Sensor Module 5528 Photo Resistor Arduino review and code","author":"Chewett","date":"June 10, 2017","format":false,"excerpt":"This post is a review of the \"Light Intensity Sensor Module 5528 Photo Resistor\" and includes code and images to use the sensor. There are a couple variants of this light sensor sold by different companies but all have similar components and designs.\u00a0This model is sold by\u00a0HiLetgo CN and is\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\/06\/light_sensor_1-1.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":721,"url":"https:\/\/chewett.co.uk\/blog\/721\/sw-18010p-motion-vibration-sensor-review-code-examples\/","url_meta":{"origin":714,"position":1},"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":2054,"url":"https:\/\/chewett.co.uk\/blog\/2054\/mq-135-air-quality-and-hazardous-gas-sensor-for-arduino-review-and-code\/","url_meta":{"origin":714,"position":2},"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":[]},{"id":1601,"url":"https:\/\/chewett.co.uk\/blog\/1601\/gy-521-mpu6050-3-axis-accelerometer-gyroscope-module-review-and-code\/","url_meta":{"origin":714,"position":3},"title":"GY-521 MPU6050 3 Axis Accelerometer Gyroscope Module Review and Code","author":"Chewett","date":"June 13, 2020","format":false,"excerpt":"This post talks about using the GY-521 MPU6050 3 Axis Accelerometer Gyroscope with an Arduino. GY-521 MPU6050 3 Axis Accelerometer Gyroscope The GY-521 MPU6050 3 Axis Accelerometer Gyroscope is a relatively complex module. The gyroscope allows you to tell both the angle it is positioned in all three axis directions\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\/10\/gy521_mpu6050_accelerometer_post_image.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\/10\/gy521_mpu6050_accelerometer_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/gy521_mpu6050_accelerometer_post_image.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/gy521_mpu6050_accelerometer_post_image.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":714,"position":4},"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":2055,"url":"https:\/\/chewett.co.uk\/blog\/2055\/daorier-sensor-button-switch-input-for-arduino-review-and-code\/","url_meta":{"origin":714,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/714","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=714"}],"version-history":[{"count":8,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/714\/revisions"}],"predecessor-version":[{"id":1516,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/714\/revisions\/1516"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/825"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}