{"product_id":"sharp-gp2y0a02yk0f-analog-distance-sensor","title":"Sharp GP2Y0A02YK0F Analog Distance Sensor","description":"\u003cdiv class=\"n6owBd awi2gc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIAhAA\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan data-subtree=\"aimfl\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eThe \u003c\/span\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eSharp GP2Y0A02YK0F\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e is a long-range optical distance sensor that measures distances from \u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e20 cm to 150 cm (8\" to 60\")\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e. It utilizes an integrated combination of an infrared emitting diode (IRED), a position-sensitive detector (PSD), and a signal processing circuit to calculate distance through triangulation. Because it uses the triangulation method, its readings are minimally affected by the object's reflectivity, operating temperature, or duration of operation.\u003cspan\u003e \u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"Fsg96\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003c!--TgQPHd|[]--\u003e\u003c\/div\u003e\n\u003cdiv class=\"otQkpb\" aria-level=\"3\" role=\"heading\" data-animation-nesting=\"\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 20px; font-weight: 600; margin: 24px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eTechnical Specifications\u003cspan\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/div\u003e\n\u003cul class=\"KsbFXc U6u95\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-processed=\"true\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIBBAA\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eOperating Voltage:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e 4.5 V to 5.5 V\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIBBAB\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eAverage Current Consumption:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e 33 mA typical (Note: It draws current in large, short bursts)\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIBBAC\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eOutput Type:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e Analog voltage (0.4 V at 150 cm up to approximately 2.8 V at 20 cm)\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIBBAD\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eResponse\/Update Time:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e 38 ± 10 ms\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIBBAE\" data-sae=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eDimensions:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e 29.5 × 13.0 × 21.6 mm\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003c!--TgQPHd|[]--\u003e\n\u003c\/ul\u003e\n\u003cdiv class=\"Fsg96\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003c!--TgQPHd|[]--\u003e\u003c\/div\u003e\n\u003chr class=\"j3tEEe\" data-sfc-root=\"c\" data-sfc-pl=\"|[]\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 32px auto; text-decoration: none; border-bottom: 0px rgb(128, 128, 128);\"\u003e\n\u003cdiv class=\"Fsg96\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003c!--TgQPHd|[]--\u003e\u003c\/div\u003e\n\u003cdiv class=\"otQkpb\" aria-level=\"3\" role=\"heading\" data-animation-nesting=\"\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 20px; font-weight: 600; margin: 24px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003ePinout and Connection\u003cspan\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"n6owBd awi2gc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIBxAA\" data-processed=\"true\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eThe sensor features a 3-pin JST PH connector interface. Looking at the back of the sensor case, the pins typically align as follows:\u003cspan\u003e \u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/div\u003e\n\u003col class=\"IaGLZe VimKh\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-processed=\"true\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAICBAA\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eVCC:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e Connect to +5V power source.\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAICBAB\" data-sae=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eGND:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e Connect to system ground.\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAICBAC\" data-complete=\"true\" data-processed=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eVo (Output):\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e Connect to an Analog Input pin on your microcontroller (e.g., Arduino A0).\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003c!--TgQPHd|[]--\u003e\n\u003c\/ol\u003e\n\u003cdiv class=\"Fsg96\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003c!--TgQPHd|[]--\u003e\u003c\/div\u003e\n\u003cblockquote class=\"lQkWXb\" data-animation-nesting=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-processed=\"true\" data-sae=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 4px 40px 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cdiv class=\"n6owBd awi2gc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAICRAB\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e⚠️ \u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eHardware Tip:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e Because the sensor draws current in massive, quick spikes during its internal IR pulses, the manufacturer strongly recommends placing a \u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e10 μF or larger bypass capacitor\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e across the VCC and GND lines close to the sensor. This stabilizes the power supply line and eliminates noise spikes in your readings.\u003cspan\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/div\u003e\n\u003c!--TgQPHd|[]--\u003e\n\u003c\/blockquote\u003e\n\u003cdiv class=\"Fsg96\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003c!--TgQPHd|[]--\u003e\u003c\/div\u003e\n\u003chr class=\"j3tEEe\" data-sfc-root=\"c\" data-sfc-pl=\"|[]\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 32px auto; text-decoration: none; border-bottom: 0px rgb(128, 128, 128);\"\u003e\n\u003cdiv class=\"Fsg96\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003c!--TgQPHd|[]--\u003e\u003c\/div\u003e\n\u003cdiv class=\"otQkpb\" aria-level=\"3\" role=\"heading\" data-animation-nesting=\"\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 20px; font-weight: 600; margin: 24px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eNon-Linear Output Behavior\u003cspan\u003e\u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"n6owBd awi2gc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIDBAA\" data-processed=\"true\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eThe output voltage of this sensor is \u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003enon-linear and inversely proportional to the distance\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e.\u003cspan\u003e \u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/div\u003e\n\u003cul class=\"KsbFXc U6u95\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-processed=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIDRAA\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\n\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e If an object gets closer than 20 cm, the voltage curve drops back down. A distance of 10 cm might look exactly like 80 cm to the microcontroller. Ensure your project keeps obstacles at least 20 cm away.\u003c!--TgQPHd|[]--\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003c!--TgQPHd|[]--\u003e\n\u003c\/li\u003e\n\u003cli class=\"Z1qcYe\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-hveid=\"CAAIDRAD\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px 0px 12px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cspan class=\"T286Pc\" data-sfc-cp=\"\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" aria-owns=\"action-menu-parent-container\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003e\u003cstrong class=\"Yjhzub\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 600; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003eLinearizing Data:\u003c!--TgQPHd|[]--\u003e\u003c\/strong\u003e To map voltage to an actual distance in centimeters, you cannot use a simple linear function like Arduino's \u003ccode dir=\"ltr\" class=\"KDcb0c\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-sae=\"\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 1px solid rgb(44, 46, 53);\"\u003emap()\u003c!--TgQPHd|[]--\u003e\u003c\/code\u003e. The relationship is roughly linear when relating the output voltage (V) to the \u003cem class=\"eujQNb\" data-sfc-root=\"c\" data-sfc-cb=\"\" data-complete=\"true\" data-copy-service-computed-style=\"font-family: Google Sans, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"\u003einverse\u003c!--TgQPHd|[]--\u003e\u003c\/em\u003e of the distance (1\/Distance)\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"K-TECHNICS","offers":[{"title":"Default Title","offer_id":42865798742087,"sku":null,"price":1200.0,"currency_code":"KES","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0680\/7637\/2039\/files\/GP2Y0A02YK0F_1.webp?v=1781084839","url":"https:\/\/www.ktechnics.com\/products\/sharp-gp2y0a02yk0f-analog-distance-sensor","provider":"K-TECHNICS","version":"1.0","type":"link"}