{"id":259171,"date":"2024-07-04T12:34:55","date_gmt":"2024-07-04T12:34:55","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=259171"},"modified":"2024-07-04T12:34:55","modified_gmt":"2024-07-04T12:34:55","slug":"how-to-read-ir-sensor-value-in-arduino","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/","title":{"rendered":"How to read IR sensor value in Arduino?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#Introduction\" title=\"Introduction\">Introduction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#Step-by-Step_Guide\" title=\"Step-by-Step Guide\">Step-by-Step Guide<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#1_Gather_the_required_materials\" title=\"1. Gather the required materials\">1. Gather the required materials<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#2_Connect_the_IR_sensor_to_the_Arduino\" title=\"2. Connect the IR sensor to the Arduino\">2. Connect the IR sensor to the Arduino<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#3_Write_the_Arduino_code\" title=\"3. Write the Arduino code\">3. Write the Arduino code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#4_Upload_the_code_to_the_Arduino\" title=\"4. Upload the code to the Arduino\">4. Upload the code to the Arduino<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#5_Open_the_serial_monitor\" title=\"5. Open the serial monitor\">5. Open the serial monitor<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#Related_FAQs\" title=\"Related FAQs\">Related FAQs<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#1_What_is_an_IR_sensor\" title=\"1. What is an IR sensor?\">1. What is an IR sensor?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#2_What_are_the_applications_of_IR_sensors\" title=\"2. What are the applications of IR sensors?\">2. What are the applications of IR sensors?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#3_How_does_an_IR_sensor_work\" title=\"3. How does an IR sensor work?\">3. How does an IR sensor work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#4_Can_I_use_any_IR_sensor_with_Arduino\" title=\"4. Can I use any IR sensor with Arduino?\">4. Can I use any IR sensor with Arduino?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#5_How_do_I_determine_the_pin_connection_of_my_IR_sensor\" title=\"5. How do I determine the pin connection of my IR sensor?\">5. How do I determine the pin connection of my IR sensor?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#6_How_can_I_improve_the_accuracy_of_IR_sensor_readings\" title=\"6. How can I improve the accuracy of IR sensor readings?\">6. How can I improve the accuracy of IR sensor readings?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#7_How_do_I_interpret_the_IR_sensor_values\" title=\"7. How do I interpret the IR sensor values?\">7. How do I interpret the IR sensor values?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#8_Can_I_control_external_devices_based_on_IR_sensor_readings\" title=\"8. Can I control external devices based on IR sensor readings?\">8. Can I control external devices based on IR sensor readings?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#9_How_far_can_an_IR_sensor_detect_objects\" title=\"9. How far can an IR sensor detect objects?\">9. How far can an IR sensor detect objects?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#10_Is_it_possible_to_use_multiple_IR_sensors_with_Arduino\" title=\"10. Is it possible to use multiple IR sensors with Arduino?\">10. Is it possible to use multiple IR sensors with Arduino?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#11_What_is_the_purpose_of_the_delay_in_the_code\" title=\"11. What is the purpose of the delay in the code?\">11. What is the purpose of the delay in the code?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#12_How_can_I_modify_the_code_to_suit_my_project_requirements\" title=\"12. How can I modify the code to suit my project requirements?\">12. How can I modify the code to suit my project requirements?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components used in Arduino projects is the infrared (IR) sensor. These sensors are capable of detecting infrared radiation and are often used in applications like obstacle detection, line following robots, and remote control systems. In this article, we will guide you on how to read the IR sensor value in Arduino.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-by-Step_Guide\"><\/span>Step-by-Step Guide<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_Gather_the_required_materials\"><\/span>1. Gather the required materials<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before we start, let&#8217;s list down the materials you will need:<br \/>\n&#8211; Arduino board (e.g., Arduino Uno)<br \/>\n&#8211; IR sensor module<br \/>\n&#8211; Breadboard<br \/>\n&#8211; Jumper wires<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Connect_the_IR_sensor_to_the_Arduino\"><\/span>2. Connect the IR sensor to the Arduino<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Connect the IR sensor module to the Arduino as follows:<br \/>\n&#8211; Connect the VCC pin of the IR sensor to the 5V pin on the Arduino.<br \/>\n&#8211; Connect the GND pin of the IR sensor to the GND pin on the Arduino.<br \/>\n&#8211; Connect the OUT pin of the IR sensor to any available digital pin on the Arduino (for example, pin 2).<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Write_the_Arduino_code\"><\/span>3. Write the Arduino code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Open the Arduino IDE and write the following code:<\/p>\n<p>&#8220;`<br \/>\nint IR_pin = 2;  \/\/ Digital pin the IR sensor is connected to<\/p>\n<p>void setup() {<br \/>\n  Serial.begin(9600);  \/\/ Initializes serial communication at 9600 baud rate<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n  int IR_value = digitalRead(IR_pin);  \/\/ Read the value from the IR sensor<br \/>\n  Serial.println(IR_value);  \/\/ Print the value to the serial monitor<br \/>\n  delay(500);  \/\/ Delay for 500 milliseconds<br \/>\n}<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Upload_the_code_to_the_Arduino\"><\/span>4. Upload the code to the Arduino<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Connect your Arduino to the computer using a USB cable and click on the upload button on the Arduino IDE. The code will be compiled and uploaded to the Arduino board.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Open_the_serial_monitor\"><\/span>5. Open the serial monitor<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once the code is uploaded successfully, open the serial monitor by clicking on the magnifying glass icon in the Arduino IDE. Set the baud rate to 9600, and you will start seeing the IR sensor values being displayed.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Related_FAQs\"><\/span>Related FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_What_is_an_IR_sensor\"><\/span>1. What is an IR sensor?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nAn IR sensor, also known as an infrared sensor, is a device that detects infrared radiation emitted by objects.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_What_are_the_applications_of_IR_sensors\"><\/span>2. What are the applications of IR sensors?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIR sensors have various applications, including but not limited to, proximity sensing, line following robots, burglar alarms, and remote control systems.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_How_does_an_IR_sensor_work\"><\/span>3. How does an IR sensor work?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIR sensors work by detecting infrared radiation changes. When an object emits or reflects infrared radiation, the sensor detects the change and produces a corresponding output.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Can_I_use_any_IR_sensor_with_Arduino\"><\/span>4. Can I use any IR sensor with Arduino?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, Arduino is compatible with various types of IR sensors. Ensure you have the appropriate specifications and connections for your particular sensor.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_How_do_I_determine_the_pin_connection_of_my_IR_sensor\"><\/span>5. How do I determine the pin connection of my IR sensor?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nConsult the datasheet or documentation of your specific IR sensor to determine the pin connections required.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_How_can_I_improve_the_accuracy_of_IR_sensor_readings\"><\/span>6. How can I improve the accuracy of IR sensor readings?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo improve accuracy, you can calibrate the sensor by adjusting its sensitivity or using additional components like capacitors or resistors.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_How_do_I_interpret_the_IR_sensor_values\"><\/span>7. How do I interpret the IR sensor values?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIR sensor values are digital readings that can either be HIGH (1) or LOW (0), indicating the presence or absence of infrared radiation, respectively.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_Can_I_control_external_devices_based_on_IR_sensor_readings\"><\/span>8. Can I control external devices based on IR sensor readings?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use the IR sensor readings to trigger actions like turning on or off external LEDs, motors, or other devices connected to the Arduino.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_How_far_can_an_IR_sensor_detect_objects\"><\/span>9. How far can an IR sensor detect objects?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nThe range of an IR sensor depends on its specifications. Usually, the range can vary from a few centimeters to several meters.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_Is_it_possible_to_use_multiple_IR_sensors_with_Arduino\"><\/span>10. Is it possible to use multiple IR sensors with Arduino?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use multiple IR sensors with Arduino by connecting them to separate digital pins and modifying the code accordingly.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_What_is_the_purpose_of_the_delay_in_the_code\"><\/span>11. What is the purpose of the delay in the code?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nThe delay is added to control the rate at which the sensor readings are displayed on the serial monitor. In this case, it is set to 500 milliseconds (half a second).<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_How_can_I_modify_the_code_to_suit_my_project_requirements\"><\/span>12. How can I modify the code to suit my project requirements?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can modify the code by adding conditions or actions based on the IR sensor values. For example, you could turn on an LED when the sensor detects an object.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components used in Arduino projects is the infrared (IR) sensor. These sensors are capable of detecting infrared radiation and are often used in applications like obstacle detection, line following robots, and remote control systems. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to read IR sensor value in Arduino?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#more-259171\">Read more<span class=\"screen-reader-text\">How to read IR sensor value in Arduino?<\/span><\/a><\/p>\n","protected":false},"author":65,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-259171","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to read IR sensor value in Arduino?<\/title>\n<meta name=\"description\" content=\"Introduction Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to read IR sensor value in Arduino?\" \/>\n<meta property=\"og:description\" content=\"Introduction Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-04T12:34:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Timothy Mathis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Timothy Mathis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/\"},\"author\":{\"name\":\"Timothy Mathis\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318\"},\"headline\":\"How to read IR sensor value in Arduino?\",\"datePublished\":\"2024-07-04T12:34:55+00:00\",\"dateModified\":\"2024-07-04T12:34:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/\"},\"wordCount\":705,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/\",\"name\":\"How to read IR sensor value in Arduino?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-07-04T12:34:55+00:00\",\"dateModified\":\"2024-07-04T12:34:55+00:00\",\"description\":\"Introduction Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to read IR sensor value in Arduino?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318\",\"name\":\"Timothy Mathis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Timothy Mathis\"},\"description\":\"Guest author Timothy Mathis has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to read IR sensor value in Arduino?","description":"Introduction Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/","og_locale":"en_US","og_type":"article","og_title":"How to read IR sensor value in Arduino?","og_description":"Introduction Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components","og_url":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-07-04T12:34:55+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Timothy Mathis","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Timothy Mathis","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/"},"author":{"name":"Timothy Mathis","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318"},"headline":"How to read IR sensor value in Arduino?","datePublished":"2024-07-04T12:34:55+00:00","dateModified":"2024-07-04T12:34:55+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/"},"wordCount":705,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/","url":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/","name":"How to read IR sensor value in Arduino?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-07-04T12:34:55+00:00","dateModified":"2024-07-04T12:34:55+00:00","description":"Introduction Arduino is an open-source hardware and software platform that allows you to easily create interactive projects. One of the common components","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-read-ir-sensor-value-in-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to read IR sensor value in Arduino?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318","name":"Timothy Mathis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Timothy Mathis"},"description":"Guest author Timothy Mathis has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/259171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=259171"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/259171\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=259171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=259171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=259171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}