{"title":"Sensors","description":"\u003cp\u003eSensors are the eyes and ears of any embedded system, converting real-world physical phenomena into electrical signals that microcontrollers can measure, process, and act upon. From light and magnetic field detection to ultrasonic ranging, our sensor range covers the most widely used sensing technologies for Arduino, Raspberry Pi, ESP32, and industrial IoT applications.\u003c\/p\u003e\u003cp\u003eOur Sensors collection includes:\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eLight Sensors\u003c\/strong\u003e — 12mm LDR (Light Dependent Resistor) photoresistors for ambient light detection, automatic brightness control, and light-activated switching circuits; resistance varies from ~1kΩ in bright light to ~10MΩ in darkness\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eMagnetic Field Sensors\u003c\/strong\u003e — linear and analog Hall effect sensor modules for contactless position detection, RPM measurement, current sensing, and magnetic field mapping; compatible with 3.3V and 5V microcontrollers\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eUltrasonic Range Finders\u003c\/strong\u003e — US-100 ultrasonic distance sensor modules with UART and trigger\/echo modes for accurate 2cm–4.5m distance measurement in robotics, obstacle avoidance, and level sensing applications\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003eAll sensor modules feature pre-soldered headers and onboard signal conditioning for direct connection to microcontroller GPIO pins. Compatible with Arduino, Raspberry Pi, ESP8266, ESP32, and STM32 platforms.\u003c\/p\u003e","products":[{"product_id":"bme280-pressure-humidity-temperature-sensor-module","title":"BME280 I2C \/ SPI Pressure, Humidity \u0026 Temperature Sensor Module","description":"\u003ch2\u003eBME280 I2C \/ SPI Pressure, Humidity \u0026amp; Temperature Sensor Module\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eBME280\u003c\/strong\u003e is the most popular all-in-one environmental sensor for Arduino and IoT projects. A single module measures \u003cstrong\u003ebarometric pressure\u003c\/strong\u003e (±1hPa), \u003cstrong\u003erelative humidity\u003c\/strong\u003e (±3%RH), and \u003cstrong\u003etemperature\u003c\/strong\u003e (±1°C) simultaneously via \u003cstrong\u003eI2C or SPI\u003c\/strong\u003e. Used in weather stations, altitude measurement, HVAC monitoring, and indoor air quality projects worldwide.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eBosch BME280\u003c\/strong\u003e | Interface: \u003cstrong\u003eI2C (0x76\/0x77) \u0026amp; SPI\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003ePressure: \u003cstrong\u003e300–1100hPa\u003c\/strong\u003e, accuracy \u003cstrong\u003e±1hPa\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eHumidity: \u003cstrong\u003e0–100%RH\u003c\/strong\u003e, accuracy \u003cstrong\u003e±3%RH\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eTemperature: \u003cstrong\u003e−40–85°C\u003c\/strong\u003e, accuracy \u003cstrong\u003e±1°C\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | Current: \u003cstrong\u003e3.6μA\u003c\/strong\u003e (1Hz sampling)\u003c\/li\u003e\n\u003cli\u003eAltitude resolution: \u003cstrong\u003e±1m\u003c\/strong\u003e (derived from pressure)\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e3-in-1 sensor\u003c\/strong\u003e — pressure + humidity + temperature in one module\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eI2C and SPI\u003c\/strong\u003e — flexible interface options for any microcontroller\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eUltra-low power\u003c\/strong\u003e — 3.6μA at 1Hz, ideal for battery-powered IoT nodes\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAdafruit BME280 library\u003c\/strong\u003e — extensive Arduino community support\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eArduino and ESP32 weather station\u003c\/li\u003e\n\u003cli\u003eIndoor air quality and HVAC monitoring\u003c\/li\u003e\n\u003cli\u003eAltitude measurement for drones and balloons\u003c\/li\u003e\n\u003cli\u003eIoT environmental monitoring nodes\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45669144166635,"sku":"","price":18.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/BME280-I2C-Humidity-Pressure-Temperature-Sensor-Module.jpg?v=1723009692"},{"product_id":"guva-s12sd-uv-light-sensor-module","title":"GUVA-S12SD UV Light Sensor Module — Analog Output, Arduino","description":"\u003ch2\u003eGUVA-S12SD UV Light Sensor Module — Analog Output, Arduino\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eGUVA-S12SD UV sensor module\u003c\/strong\u003e measures \u003cstrong\u003eultraviolet (UV) light intensity\u003c\/strong\u003e in the \u003cstrong\u003e240–370nm wavelength range\u003c\/strong\u003e and outputs an analog voltage proportional to UV intensity. Convert the analog output to a \u003cstrong\u003eUV index (0–11+)\u003c\/strong\u003e using a simple formula in Arduino. Ideal for weather stations, UV exposure monitoring, and sunscreen effectiveness testing.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eSensor: \u003cstrong\u003eGUVA-S12SD\u003c\/strong\u003e | Wavelength: \u003cstrong\u003e240–370nm (UV-A + UV-B)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eOutput: \u003cstrong\u003eAnalog voltage\u003c\/strong\u003e (0–1V proportional to UV intensity)\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | Current: \u003cstrong\u003e0.1mA\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eUV index range: \u003cstrong\u003e0–11+\u003c\/strong\u003e (calculated from output voltage)\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e240–370nm range\u003c\/strong\u003e — covers both UV-A and UV-B bands\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAnalog output\u003c\/strong\u003e — direct connection to Arduino analog input\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eUV index calculation\u003c\/strong\u003e — simple formula converts voltage to UV index\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e3.3V\/5V compatible\u003c\/strong\u003e — works with Arduino Uno, ESP32 and Raspberry Pi\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eArduino weather station UV index measurement\u003c\/li\u003e\n\u003cli\u003eUV exposure monitoring and sunburn warning\u003c\/li\u003e\n\u003cli\u003eSunscreen effectiveness testing\u003c\/li\u003e\n\u003cli\u003eUV sterilization monitoring\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45669156618475,"sku":"","price":19.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/1b636747-f617-44d2-9041-8d4059fdc8a9.jpg?v=1723009647"},{"product_id":"gy-bme280-pressure-humidity-temperature-sensor","title":"GY-BME280 Pressure, Humidity \u0026 Temperature Sensor Module — I2C \/ SPI","description":"\u003ch2\u003eGY-BME280 Pressure, Humidity \u0026amp; Temperature Sensor Module — I2C \/ SPI\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eGY-BME280\u003c\/strong\u003e is a compact environmental sensor module based on the \u003cstrong\u003eBosch BME280\u003c\/strong\u003e chip, measuring \u003cstrong\u003ebarometric pressure\u003c\/strong\u003e (±1hPa), \u003cstrong\u003erelative humidity\u003c\/strong\u003e (±3%RH), and \u003cstrong\u003etemperature\u003c\/strong\u003e (±1°C) simultaneously via \u003cstrong\u003eI2C or SPI\u003c\/strong\u003e. The GY-series PCB includes voltage regulation and level shifting for direct 3.3V or 5V operation with Arduino, ESP32, and Raspberry Pi.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eBosch BME280\u003c\/strong\u003e | Interface: \u003cstrong\u003eI2C (0x76\/0x77) \u0026amp; SPI\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003ePressure: \u003cstrong\u003e300–1100hPa\u003c\/strong\u003e, accuracy \u003cstrong\u003e±1hPa\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eHumidity: \u003cstrong\u003e0–100%RH\u003c\/strong\u003e, accuracy \u003cstrong\u003e±3%RH\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eTemperature: \u003cstrong\u003e−40–85°C\u003c\/strong\u003e, accuracy \u003cstrong\u003e±1°C\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | Current: \u003cstrong\u003e3.6μA\u003c\/strong\u003e (1Hz sampling)\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e3-in-1 sensor\u003c\/strong\u003e — pressure + humidity + temperature in one module\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eOn-board voltage regulator\u003c\/strong\u003e — direct 3.3V or 5V operation\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eI2C and SPI\u003c\/strong\u003e — flexible interface for any microcontroller\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAdafruit BME280 library\u003c\/strong\u003e — extensive Arduino community support\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eArduino and ESP32 weather station\u003c\/li\u003e\n\u003cli\u003eIndoor air quality and HVAC monitoring\u003c\/li\u003e\n\u003cli\u003eAltitude measurement for drones and balloons\u003c\/li\u003e\n\u003cli\u003eIoT environmental monitoring nodes\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45669161009387,"sku":"","price":45.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/GY-BME280-Humidity-Pressure-Temperature-Sensor-Module-1.jpg?v=1723009638"},{"product_id":"gy-30-bh1750fvi-ambient-light-sensor-module-i2c","title":"GY-30 BH1750FVI Digital Ambient Light Sensor Module — I2C","description":"\u003ch2\u003eGY-30 BH1750FVI Digital Ambient Light Sensor Module — I2C\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eGY-30 BH1750FVI\u003c\/strong\u003e is a digital ambient light sensor module that outputs \u003cstrong\u003ecalibrated lux values directly via I2C\u003c\/strong\u003e — no ADC conversion or calibration required. Measures light intensity from \u003cstrong\u003e1 to 65,535 lux\u003c\/strong\u003e with \u003cstrong\u003e16-bit resolution\u003c\/strong\u003e, covering the full range from moonlight to direct sunlight. Ideal for automatic brightness control, light-dependent automation, and weather station light measurement.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eBH1750FVI\u003c\/strong\u003e | Output: \u003cstrong\u003eDirect lux value via I2C\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eRange: \u003cstrong\u003e1–65,535 lux\u003c\/strong\u003e | Resolution: \u003cstrong\u003e16-bit\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eAccuracy: \u003cstrong\u003e±20%\u003c\/strong\u003e | Spectral response: \u003cstrong\u003eclose to human eye\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eInterface: \u003cstrong\u003eI2C (0x23 \/ 0x5C selectable)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | Current: \u003cstrong\u003e0.12mA\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003eDirect lux output\u003c\/strong\u003e — no calibration or ADC conversion needed\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eHuman eye spectral response\u003c\/strong\u003e — accurate perceived brightness measurement\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e2 selectable I2C addresses\u003c\/strong\u003e — use two modules on one I2C bus\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eBH1750 Arduino library\u003c\/strong\u003e — simple one-line lux reading\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eAutomatic display brightness control\u003c\/li\u003e\n\u003cli\u003eArduino weather station light measurement\u003c\/li\u003e\n\u003cli\u003eSmart lighting and daylight harvesting\u003c\/li\u003e\n\u003cli\u003ePlant growth light monitoring\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45669162713323,"sku":"","price":12.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/GY-30-BH1750FVI-Digital-Ambient-Light-Intensity-Sensor.jpg?v=1723009626"},{"product_id":"gy-63-ms5611-barometric-pressure-sensor-module","title":"GY-63 MS5611 High-Resolution Barometric Pressure \u0026 Temperature Sensor Module","description":"\u003ch2\u003eGY-63 MS5611 High-Resolution Barometric Pressure \u0026amp; Temperature Sensor Module\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eGY-63 MS5611\u003c\/strong\u003e is a high-resolution barometric pressure and temperature sensor module used in professional drone altimeters and precision weather instruments. With a \u003cstrong\u003e24-bit ADC\u003c\/strong\u003e and \u003cstrong\u003e10cm altitude resolution\u003c\/strong\u003e, it far exceeds the accuracy of BMP180 and BME280 sensors. Communicates via \u003cstrong\u003eI2C or SPI\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eMS5611\u003c\/strong\u003e | ADC: \u003cstrong\u003e24-bit\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003ePressure range: \u003cstrong\u003e10–1200mbar\u003c\/strong\u003e | Resolution: \u003cstrong\u003e0.012mbar (10cm altitude)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eTemperature range: \u003cstrong\u003e−40–85°C\u003c\/strong\u003e | Resolution: \u003cstrong\u003e0.01°C\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eInterface: \u003cstrong\u003eI2C \u0026amp; SPI\u003c\/strong\u003e | Supply: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSampling rate: \u003cstrong\u003eup to 100Hz\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e10cm altitude resolution\u003c\/strong\u003e — far more precise than BMP180 or BME280\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e24-bit ADC\u003c\/strong\u003e — professional-grade pressure measurement\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eUp to 100Hz sampling\u003c\/strong\u003e — suitable for drone flight controller altitude hold\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eI2C and SPI\u003c\/strong\u003e — flexible interface for any microcontroller\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eDrone and UAV altimeter and altitude hold\u003c\/li\u003e\n\u003cli\u003ePrecision weather station barometric pressure\u003c\/li\u003e\n\u003cli\u003eIndoor navigation and floor detection\u003c\/li\u003e\n\u003cli\u003eHigh-accuracy altitude logging\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670630621419,"sku":"","price":45.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/GY-63-MS5611-Pressure-Sensor-Module.jpg?v=1723009614"},{"product_id":"gy-906-mlx90614-non-contact-ir-thermometer-module","title":"GY-906 MLX90614 Non-Contact Infrared Thermometer Module — I2C","description":"\u003ch2\u003eGY-906 MLX90614 Non-Contact Infrared Thermometer Module — I2C\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eGY-906 MLX90614\u003c\/strong\u003e is a non-contact infrared thermometer module that measures object temperature from a distance without physical contact. Built around the \u003cstrong\u003eMelexis MLX90614\u003c\/strong\u003e IR sensor, it measures both \u003cstrong\u003eobject temperature (−70–380°C)\u003c\/strong\u003e and \u003cstrong\u003eambient temperature (−40–125°C)\u003c\/strong\u003e with \u003cstrong\u003e±0.5°C accuracy\u003c\/strong\u003e via I2C. Ideal for body temperature measurement, industrial non-contact temperature sensing, and fire detection.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eMLX90614ESF\u003c\/strong\u003e | Interface: \u003cstrong\u003eI2C (SMBus, 0x5A default)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eObject temp range: \u003cstrong\u003e−70–380°C\u003c\/strong\u003e | Accuracy: \u003cstrong\u003e±0.5°C\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eAmbient temp range: \u003cstrong\u003e−40–85°C\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eResolution: \u003cstrong\u003e0.02°C\u003c\/strong\u003e | FOV: \u003cstrong\u003e90°\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3V\u003c\/strong\u003e | Current: \u003cstrong\u003e1.5mA\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003eNon-contact measurement\u003c\/strong\u003e — measure temperature without touching the object\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e±0.5°C accuracy\u003c\/strong\u003e — medical-grade precision for body temperature\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e0.02°C resolution\u003c\/strong\u003e — detect subtle temperature changes\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAdafruit MLX90614 library\u003c\/strong\u003e — simple Arduino integration\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eNon-contact body temperature measurement\u003c\/li\u003e\n\u003cli\u003eIndustrial surface temperature monitoring\u003c\/li\u003e\n\u003cli\u003eFire and hotspot detection\u003c\/li\u003e\n\u003cli\u003eHVAC duct and pipe temperature sensing\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670631244011,"sku":"","price":45.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/GY-906-MLX90614-Non-Contact-Temperature-Sensor.jpg?v=1723009606"},{"product_id":"apds-9960-gesture-proximity-rgb-light-sensor-gy-9960-i2c-arduino","title":"APDS-9960 Gesture, Proximity \u0026 RGB Light Sensor Module — GY-9960-3.3, I²C, Arduino","description":"\u003ch2\u003eAPDS-9960 Gesture, Proximity \u0026amp; RGB Light Sensor Module — GY-9960-3.3, I²C\u003c\/h2\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eGY-9960-3.3 module\u003c\/strong\u003e uses the Broadcom APDS-9960 sensor to provide four sensing capabilities in a single I²C device: gesture detection (swipe up\/down\/left\/right), proximity sensing (0–10cm), ambient light intensity, and RGB color sensing. It's the sensor used in many smartphones for screen-off detection and gesture control. The module includes a 3.3V regulator and I²C level shifter, making it directly compatible with both 3.3V and 5V Arduino boards.\u003c\/p\u003e\n\n\u003ch3\u003eModule Specifications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSensor IC:\u003c\/strong\u003e Broadcom APDS-9960\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInterface:\u003c\/strong\u003e I²C (address: 0x39)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupply Voltage:\u003c\/strong\u003e 3.3V (on-board regulator — can accept 5V input)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSensing Functions:\u003c\/strong\u003e\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eGesture:\u003c\/strong\u003e Detect swipe direction (up, down, left, right)\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eProximity:\u003c\/strong\u003e Detect object presence 0–10cm range\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eAmbient Light:\u003c\/strong\u003e Measure light intensity (lux)\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eRGB Color:\u003c\/strong\u003e Measure red, green, blue color components\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInterrupt:\u003c\/strong\u003e INT pin for hardware interrupt on gesture\/proximity events\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLibrary:\u003c\/strong\u003e SparkFun APDS-9960 Arduino library\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eArduino Wiring\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eVCC → 3.3V or 5V | GND → GND\u003c\/li\u003e\n  \u003cli\u003eSDA → Arduino A4 (with 4.7kΩ pull-up) | SCL → Arduino A5 (with 4.7kΩ pull-up)\u003c\/li\u003e\n  \u003cli\u003eINT → Arduino D2 (interrupt pin, optional)\u003c\/li\u003e\n  \u003cli\u003eInstall SparkFun APDS-9960 library from Arduino Library Manager\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTouchless gesture control:\u003c\/strong\u003e Swipe to control music, lights, or menu navigation without touching\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProximity wake:\u003c\/strong\u003e Wake display or activate device when hand approaches\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eColor detection:\u003c\/strong\u003e Identify object color for sorting and quality control\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAmbient light sensing:\u003c\/strong\u003e Auto-adjust display brightness based on room lighting\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSmart home control:\u003c\/strong\u003e Gesture-controlled lighting and appliance switching\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003ePackage Contents\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e1 × GY-9960-3.3 APDS-9960 gesture, proximity, and RGB light sensor module\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eFour sensors in one I²C module — gesture, proximity, ambient light, and RGB color detection with Arduino library support for touchless control and smart sensing applications.\u003c\/p\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670631637227,"sku":"","price":18.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/GY-9960-APDS-9960-Gesture-Module.jpg?v=1723009595"},{"product_id":"ina219-dc-current-power-measurement-module-i2c","title":"INA219 DC Current \u0026 Power Measurement Module — I2C, 26V \/ 3.2A","description":"\u003ch2\u003eINA219 DC Current \u0026amp; Power Measurement Module — I2C, 26V \/ 3.2A\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eINA219 module\u003c\/strong\u003e measures \u003cstrong\u003eDC current, voltage, and power\u003c\/strong\u003e simultaneously via I2C — without breaking the circuit. Insert the module in series with the load and read \u003cstrong\u003ecurrent (up to 3.2A)\u003c\/strong\u003e, \u003cstrong\u003ebus voltage (up to 26V)\u003c\/strong\u003e, and \u003cstrong\u003ecalculated power\u003c\/strong\u003e directly from Arduino. Features a \u003cstrong\u003e12-bit ADC\u003c\/strong\u003e with \u003cstrong\u003e1% accuracy\u003c\/strong\u003e and programmable gain.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eINA219\u003c\/strong\u003e | Interface: \u003cstrong\u003eI2C (0x40–0x4F, 16 addresses)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCurrent range: \u003cstrong\u003e±3.2A\u003c\/strong\u003e | Voltage range: \u003cstrong\u003e0–26V\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eResolution: \u003cstrong\u003e12-bit\u003c\/strong\u003e | Accuracy: \u003cstrong\u003e1%\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eShunt resistor: \u003cstrong\u003e0.1Ω on-board\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | Current: \u003cstrong\u003e1mA\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003eMeasures current + voltage + power\u003c\/strong\u003e — complete power monitoring in one module\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e16 selectable I2C addresses\u003c\/strong\u003e — monitor up to 16 circuits on one I2C bus\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eHigh-side measurement\u003c\/strong\u003e — measure current without ground loop issues\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAdafruit INA219 library\u003c\/strong\u003e — simple Arduino integration\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eBattery charge\/discharge monitoring\u003c\/li\u003e\n\u003cli\u003eSolar panel and power supply monitoring\u003c\/li\u003e\n\u003cli\u003eMotor current monitoring and overload detection\u003c\/li\u003e\n\u003cli\u003eIoT power consumption logging\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670633373931,"sku":"","price":12.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/INA219-DC-Current-Sensor-Module-1.jpg?v=1723009560"},{"product_id":"max6675-k-type-thermocouple-temperature-module-spi","title":"MAX6675 K-Type Thermocouple Temperature Module — SPI, 0–1024°C","description":"\u003ch2\u003eMAX6675 K-Type Thermocouple Temperature Module — SPI, 0–1024°C\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eMAX6675 thermocouple module\u003c\/strong\u003e interfaces a \u003cstrong\u003eK-type thermocouple\u003c\/strong\u003e to Arduino via SPI, measuring temperatures from \u003cstrong\u003e0°C to 1024°C\u003c\/strong\u003e with \u003cstrong\u003e0.25°C resolution\u003c\/strong\u003e. The MAX6675 IC handles cold-junction compensation internally — simply connect a K-type thermocouple and read temperature directly. Ideal for high-temperature applications far beyond the range of standard temperature sensors.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eMAX6675\u003c\/strong\u003e | Thermocouple: \u003cstrong\u003eK-type\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eTemperature range: \u003cstrong\u003e0–1024°C\u003c\/strong\u003e | Resolution: \u003cstrong\u003e0.25°C (12-bit)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eAccuracy: \u003cstrong\u003e±8°C\u003c\/strong\u003e | Interface: \u003cstrong\u003eSPI (read-only)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCold-junction compensation: \u003cstrong\u003eInternal\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e0–1024°C range\u003c\/strong\u003e — measure temperatures far beyond NTC\/DHT sensor limits\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eInternal cold-junction compensation\u003c\/strong\u003e — no external reference thermometer needed\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eSPI interface\u003c\/strong\u003e — simple 3-wire connection to Arduino\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eMAX6675 Arduino library\u003c\/strong\u003e — one-line temperature reading\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eReflow oven and soldering station temperature control\u003c\/li\u003e\n\u003cli\u003eBBQ smoker and kiln temperature monitoring\u003c\/li\u003e\n\u003cli\u003eIndustrial furnace and boiler temperature measurement\u003c\/li\u003e\n\u003cli\u003e3D printer heated bed and hotend temperature\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670664437995,"sku":"","price":13.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/MAX6675-Thermocouple-Temperature-Module.jpg?v=1723009474"},{"product_id":"mpu-6050-gy-521-accelerometer-gyroscope-module-i2c","title":"MPU-6050 GY-521 3-Axis Accelerometer \u0026 Gyroscope Module — I2C","description":"\u003ch2\u003eMPU-6050 GY-521 3-Axis Accelerometer \u0026amp; Gyroscope Module — I2C\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eMPU-6050 GY-521\u003c\/strong\u003e is the most popular 6-DOF IMU (Inertial Measurement Unit) module for Arduino. Combines a \u003cstrong\u003e3-axis accelerometer\u003c\/strong\u003e and \u003cstrong\u003e3-axis gyroscope\u003c\/strong\u003e in a single I2C module with an integrated \u003cstrong\u003eDigital Motion Processor (DMP)\u003c\/strong\u003e for onboard sensor fusion. Used in drones, robots, gesture controllers, and balance bots worldwide.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eInvenSense MPU-6050\u003c\/strong\u003e | DOF: \u003cstrong\u003e6 (3-axis accel + 3-axis gyro)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eAccelerometer range: \u003cstrong\u003e±2g \/ ±4g \/ ±8g \/ ±16g\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eGyroscope range: \u003cstrong\u003e±250 \/ ±500 \/ ±1000 \/ ±2000°\/s\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eADC: \u003cstrong\u003e16-bit\u003c\/strong\u003e | Interface: \u003cstrong\u003eI2C (0x68 \/ 0x69)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eDMP: \u003cstrong\u003eYes\u003c\/strong\u003e (onboard sensor fusion)\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | Current: \u003cstrong\u003e3.9mA\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e6-DOF in one chip\u003c\/strong\u003e — accelerometer + gyroscope, no separate sensors needed\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eDigital Motion Processor\u003c\/strong\u003e — onboard sensor fusion for quaternion output\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e16-bit ADC\u003c\/strong\u003e — high-resolution motion data\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eMPU6050 Arduino library\u003c\/strong\u003e — extensive community support and tutorials\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eDrone and UAV flight controller IMU\u003c\/li\u003e\n\u003cli\u003eSelf-balancing robot and segway\u003c\/li\u003e\n\u003cli\u003eGesture recognition and motion control\u003c\/li\u003e\n\u003cli\u003eVibration monitoring and tilt sensing\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670701727979,"sku":"","price":12.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/MPU-6050-Accel-and-Gyro-Module.jpg?v=1723009422"},{"product_id":"mpu-9250-9dof-imu-accelerometer-gyroscope-magnetometer","title":"MPU-9250 9-DOF IMU Module — Accelerometer, Gyroscope \u0026 Magnetometer","description":"\u003ch2\u003eMPU-9250 9-DOF IMU Module — Accelerometer, Gyroscope \u0026amp; Magnetometer\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eMPU-9250\u003c\/strong\u003e is a complete \u003cstrong\u003e9-DOF IMU\u003c\/strong\u003e combining a \u003cstrong\u003e3-axis accelerometer\u003c\/strong\u003e, \u003cstrong\u003e3-axis gyroscope\u003c\/strong\u003e, and \u003cstrong\u003e3-axis magnetometer (AK8963)\u003c\/strong\u003e in a single I2C\/SPI module. The magnetometer enables \u003cstrong\u003eabsolute heading (compass) measurement\u003c\/strong\u003e in addition to motion sensing — making it the ideal IMU for drones, robots, and navigation systems requiring full 9-axis orientation data.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eInvenSense MPU-9250 + AK8963\u003c\/strong\u003e | DOF: \u003cstrong\u003e9\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eAccelerometer: \u003cstrong\u003e±2g \/ ±4g \/ ±8g \/ ±16g\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eGyroscope: \u003cstrong\u003e±250 \/ ±500 \/ ±1000 \/ ±2000°\/s\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eMagnetometer: \u003cstrong\u003e±4800μT\u003c\/strong\u003e (AK8963, 16-bit)\u003c\/li\u003e\n\u003cli\u003eInterface: \u003cstrong\u003eI2C \u0026amp; SPI\u003c\/strong\u003e | Supply: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e9-DOF in one module\u003c\/strong\u003e — accel + gyro + magnetometer, complete orientation sensing\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAbsolute heading\u003c\/strong\u003e — magnetometer enables compass and true north reference\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eI2C and SPI\u003c\/strong\u003e — flexible interface for any microcontroller\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eMPU9250 Arduino library\u003c\/strong\u003e — community support for sensor fusion\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eDrone and UAV 9-axis flight controller IMU\u003c\/li\u003e\n\u003cli\u003eRobot navigation with compass heading\u003c\/li\u003e\n\u003cli\u003eAugmented reality and VR head tracking\u003c\/li\u003e\n\u003cli\u003ePedestrian dead reckoning navigation\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670703137003,"sku":"","price":45.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/MPU-9250-Accel-Gyro-and-Mag-Module-1.jpg?v=1723009406"},{"product_id":"tcs34725-rgb-color-sensor-module-i2c","title":"TCS34725 RGB Color Sensor Module — I2C, IR Filter","description":"\u003ch2\u003eTCS34725 RGB Color Sensor Module — I2C, IR Filter\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eTCS34725 RGB color sensor module\u003c\/strong\u003e measures \u003cstrong\u003ered, green, blue, and clear light intensity\u003c\/strong\u003e with \u003cstrong\u003e16-bit resolution per channel\u003c\/strong\u003e via I2C. Features an \u003cstrong\u003eintegrated IR blocking filter\u003c\/strong\u003e for accurate color measurement under various lighting conditions. Used in color sorting machines, paint matching, and ambient light color detection.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIC: \u003cstrong\u003eTCS34725\u003c\/strong\u003e | Channels: \u003cstrong\u003eR \/ G \/ B \/ Clear (16-bit each)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eInterface: \u003cstrong\u003eI2C (0x29)\u003c\/strong\u003e | IR filter: \u003cstrong\u003eIntegrated\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eGain: \u003cstrong\u003e1× \/ 4× \/ 16× \/ 60× programmable\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eIntegration time: \u003cstrong\u003e2.4ms–700ms programmable\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | LED: \u003cstrong\u003eOn-board white LED for illumination\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003eIR blocking filter\u003c\/strong\u003e — accurate color measurement regardless of IR content\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e16-bit per channel\u003c\/strong\u003e — high-resolution color discrimination\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eOn-board white LED\u003c\/strong\u003e — consistent illumination for color measurement\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAdafruit TCS34725 library\u003c\/strong\u003e — simple Arduino color reading\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eColor sorting and classification machines\u003c\/li\u003e\n\u003cli\u003ePaint and material color matching\u003c\/li\u003e\n\u003cli\u003eAmbient light color temperature measurement\u003c\/li\u003e\n\u003cli\u003eLED color calibration and white balance\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670709985515,"sku":"","price":25.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/TCS34725-RGB-Color-Sensor-Module.jpg?v=1723009336"},{"product_id":"temt6000-ambient-light-sensor-module-analog","title":"TEMT6000 Ambient Light Sensor Module — Analog, Arduino","description":"\u003ch2\u003eTEMT6000 Ambient Light Sensor Module — Analog, Arduino\u003c\/h2\u003e\n\u003cp\u003eThe \u003cstrong\u003eTEMT6000 ambient light sensor module\u003c\/strong\u003e measures ambient light intensity with a \u003cstrong\u003espectral response closely matching the human eye\u003c\/strong\u003e. Outputs an analog voltage proportional to light intensity — connect directly to an Arduino analog input. Ideal for automatic display brightness control and light-dependent automation.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eSensor: \u003cstrong\u003eTEMT6000\u003c\/strong\u003e | Output: \u003cstrong\u003eAnalog voltage\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSpectral response: \u003cstrong\u003e570nm peak (human eye matched)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eSupply voltage: \u003cstrong\u003e3.3–5V\u003c\/strong\u003e | Current: \u003cstrong\u003e20mA max\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eAngle: \u003cstrong\u003e±60° half-angle\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003eHuman eye spectral response\u003c\/strong\u003e — measures perceived brightness accurately\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eAnalog output\u003c\/strong\u003e — direct connection to Arduino analog input\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eWide angle\u003c\/strong\u003e — ±60° for broad ambient light capture\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eSimple integration\u003c\/strong\u003e — no library needed, read analogRead() directly\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eAutomatic display brightness control\u003c\/li\u003e\n\u003cli\u003eSmart lighting and daylight harvesting\u003c\/li\u003e\n\u003cli\u003eLight-activated relay and automation\u003c\/li\u003e\n\u003cli\u003eArduino weather station light measurement\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45670710444267,"sku":"","price":12.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/TEMT6000-Ambient-Light-Sensor-Module-2.jpg?v=1723009324"},{"product_id":"infrared-phototransistor-940nm-5mm-5-pack","title":"Infrared Phototransistor 940nm — 5mm, 5-Pack","description":"\u003ch2\u003eInfrared Phototransistor 940nm — 5mm, 5-Pack\u003c\/h2\u003e\n\n\u003cp\u003eAn \u003cstrong\u003eNPN infrared phototransistor\u003c\/strong\u003e with \u003cstrong\u003e940nm peak sensitivity\u003c\/strong\u003e — 5mm package, pack of 5. Conducts current proportional to the intensity of incident infrared light, making it ideal for \u003cstrong\u003eIR remote control receivers, line follower sensors, proximity detectors, and optical encoders\u003c\/strong\u003e. Matched to 940nm IR emitter LEDs for maximum sensitivity in IR communication and detection circuits.\u003c\/p\u003e\n\n\u003ch3\u003eKey Specifications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eType: \u003cstrong\u003eNPN phototransistor\u003c\/strong\u003e | Package: \u003cstrong\u003e5mm\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003ePeak wavelength: \u003cstrong\u003e940nm\u003c\/strong\u003e | Half-angle: \u003cstrong\u003e30°\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCollector current: \u003cstrong\u003eup to 50mA\u003c\/strong\u003e | VCE: \u003cstrong\u003e30V max\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eResponse time: \u003cstrong\u003efast (suitable for PWM and modulated IR)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003ePack: \u003cstrong\u003e5 phototransistors\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003eCompliance: \u003cstrong\u003eRoHS compliant\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhy Choose This?\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e✅ \u003cstrong\u003e940nm peak sensitivity\u003c\/strong\u003e — matched to standard IR emitter LEDs for maximum signal\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e30° half-angle\u003c\/strong\u003e — focused detection for directional IR sensing\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003eFast response\u003c\/strong\u003e — suitable for 38kHz modulated IR signals and PWM\u003c\/li\u003e\n\u003cli\u003e✅ \u003cstrong\u003e5-pack value\u003c\/strong\u003e — spares for prototyping and production\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eIR remote control receiver circuit\u003c\/li\u003e\n\u003cli\u003eLine follower robot IR sensor\u003c\/li\u003e\n\u003cli\u003eProximity and object detection sensor\u003c\/li\u003e\n\u003cli\u003eOptical encoder for motor speed sensing\u003c\/li\u003e\n\u003cli\u003eIR beam-break sensor for counting and detection\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45672618787051,"sku":"","price":6.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Phototransistor-Infrared-940nm-5-Pack-1.jpg?v=1723008360"},{"product_id":"ds18b20-digital-temperature-sensor","title":"DS18B20 Digital Temperature Sensor — 1-Wire, TO-92, -55°C to +85°C, with 4.7K Resistor","description":"\u003ch2\u003eDS18B20 Digital Temperature Sensor — 1-Wire Interface, TO-92 Package\u003c\/h2\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eDS18B20\u003c\/strong\u003e is the industry-standard 1-Wire digital temperature sensor from Dallas\/Maxim, measuring temperatures from \u003cstrong\u003e-55°C to +85°C\u003c\/strong\u003e with \u003cstrong\u003e±0.5°C accuracy\u003c\/strong\u003e over the -10°C to +85°C range. Its single-wire digital interface means only one microcontroller pin is needed — and multiple DS18B20 sensors can share the same bus, each identified by a unique 64-bit serial number. Includes a \u003cstrong\u003e4.7kΩ pull-up resistor\u003c\/strong\u003e for immediate use.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eParameter\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003e1-Wire (single digital pin)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eSupply Voltage\u003c\/td\u003e\n\u003ctd\u003e3.0V – 5.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eTemperature Range\u003c\/td\u003e\n\u003ctd\u003e-55°C to +85°C\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eAccuracy\u003c\/td\u003e\n\u003ctd\u003e±0.5°C (-10°C to +85°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eResolution\u003c\/td\u003e\n\u003ctd\u003e9–12 bit (programmable)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eConversion Time\u003c\/td\u003e\n\u003ctd\u003e93.75ms (9-bit) to 750ms (12-bit)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003ePackage\u003c\/td\u003e\n\u003ctd\u003eTO-92 (3-pin through-hole)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eLogic Levels\u003c\/td\u003e\n\u003ctd\u003eLogic High \u0026gt;2.2V \/ Logic Low \u0026lt;0.8V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eManufacturer\u003c\/td\u003e\n\u003ctd\u003eDallas \/ Maxim (now Analog Devices)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhy Choose the DS18B20?\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSingle-wire bus\u003c\/strong\u003e — only one GPIO pin required; multiple sensors can share the same wire\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDigital output\u003c\/strong\u003e — immune to electrical noise and long cable runs, unlike analog sensors (LM35, NTC thermistor)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUnique 64-bit address\u003c\/strong\u003e — identify and address each sensor individually on a shared 1-Wire bus\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProgrammable resolution\u003c\/strong\u003e — 9 to 12-bit resolution trades off speed vs. precision\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParasitic power mode\u003c\/strong\u003e — can operate on just 2 wires (data + ground) without a separate power supply\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompact TO-92 package\u003c\/strong\u003e — fits tight PCB areas or can be soldered to a cable for remote mounting\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIncludes 4.7kΩ resistor\u003c\/strong\u003e — required pull-up for 1-Wire bus, included in the package\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eTypical Applications\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eArduino and Raspberry Pi temperature monitoring projects\u003c\/li\u003e\n  \u003cli\u003eMulti-point temperature logging (multiple sensors on one pin)\u003c\/li\u003e\n  \u003cli\u003eThermostat and temperature controller builds\u003c\/li\u003e\n  \u003cli\u003eRemote temperature sensing with long cable runs\u003c\/li\u003e\n  \u003cli\u003eHeat sink and enclosure thermal monitoring\u003c\/li\u003e\n  \u003cli\u003eAquarium, greenhouse, and environmental monitoring\u003c\/li\u003e\n  \u003cli\u003e3D printer heated bed and hotend temperature sensing\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eWiring (Arduino)\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eDS18B20 Pin\u003c\/th\u003e\n\u003cth\u003eConnection\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eVDD (pin 3)\u003c\/td\u003e\n\u003ctd\u003e3.3V or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eGND (pin 1)\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eDQ (pin 2)\u003c\/td\u003e\n\u003ctd\u003eDigital pin (e.g. D4) + 4.7kΩ pull-up to VDD\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eFrequently Asked Questions\u003c\/h2\u003e\n\u003ch3\u003eQ: What libraries do I need for Arduino?\u003c\/h3\u003e\n\u003cp\u003eInstall \u003cstrong\u003eOneWire\u003c\/strong\u003e and \u003cstrong\u003eDallasTemperature\u003c\/strong\u003e libraries via the Arduino Library Manager. These handle all 1-Wire protocol communication and make reading temperature as simple as calling \u003ccode\u003esensors.getTempCByIndex(0)\u003c\/code\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eQ: How many DS18B20 sensors can I connect to one pin?\u003c\/h3\u003e\n\u003cp\u003eTheoretically unlimited — each sensor has a unique 64-bit address. In practice, 10–20 sensors on a single bus is common. Use a stronger pull-up resistor (2.2kΩ) for longer buses or more sensors.\u003c\/p\u003e\n\n\u003ch3\u003eQ: What is parasitic power mode?\u003c\/h3\u003e\n\u003cp\u003eIn parasitic mode, the sensor draws power from the data line, requiring only 2 wires (DQ + GND). This simplifies wiring for remote sensors but requires special timing considerations. For most projects, use standard 3-wire mode (VDD + GND + DQ).\u003c\/p\u003e\n\n\u003ch3\u003eQ: DS18B20 vs LM35 — which should I use?\u003c\/h3\u003e\n\u003cp\u003eThe DS18B20 is better for: long cable runs, multiple sensors on one pin, noise-sensitive environments, and digital systems. The LM35 is simpler (direct analog output, no library needed) but is more susceptible to noise and requires one analog pin per sensor.\u003c\/p\u003e\n\n\u003ch2\u003ePackage Contents\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e1× DS18B20 Digital Temperature Sensor (TO-92)\u003c\/li\u003e\n  \u003cli\u003e1× 4.7kΩ resistor (pull-up for 1-Wire bus)\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45673261531371,"sku":"","price":5.47,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/DS18B20-Digital-Temp-Sensor-1.jpg?v=1723007563"},{"product_id":"hall-effect-sensor-analog-49e","title":"Hall-Effect Sensor Analog 49E","description":"\u003cp\u003e\u003cspan\u003eThe 49E sensor can detect the magnetic N\/S pole and relative strength of a magnetic field and output an analog voltage\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Hall-Effect Sensor Analog 49E can detect the magnetic N\/S pole and relative strength of a magnetic field.\u003c\/p\u003e\n\u003ch2\u003ePACKAGE INCLUDES:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHall-Effect Sensor Analog 49E\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HALL-EFFECT SENSOR ANALOG 49E:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSenses relative strength of magnetic field and provides analog voltage output\u003c\/li\u003e\n\u003cli\u003eCan differentiate between North and South pole of magnet\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eHall-effect sensors are commonly used for measuring the speed of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates.  They can also be used for applications such as determining when a door has been opened, position sensing and detecting the magnetic field created by current flow in a wire.\u003cimg decoding=\"async\" class=\"alignright size-full wp-image-5501 entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg\" alt=\"49E Hall Effect Sensor Pinout\" width=\"100\" height=\"330\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg 100w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-91x300.jpg 91w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-57x187.jpg 57w\" data-lazy-sizes=\"(max-width: 100px) 100vw, 100px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 100px) 100vw, 100px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg 100w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-91x300.jpg 91w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-57x187.jpg 57w\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe 49E sensor can detect both the North and South pole of a magnet as well as the relative strength of the magnetic field.  The side of the sensor with the labeling is the side used for detection.\u003c\/p\u003e\n\u003cp\u003eHall-effect sensors have several advantages over mechanic switches, chief among them are that by being solid-state, there is no concern about contacts wearing out and the switching speed can be quite high.\u003c\/p\u003e\n\u003cp\u003eThe main challenge with using Hall-effect sensors usually resides around the mounting of the sensor and any associated magnets.\u003c\/p\u003e\n\u003ch3\u003ePower Supply\u003c\/h3\u003e\n\u003cp\u003eThe sensor can operate over a Vcc range of 2.3-10V.\u003c\/p\u003e\n\u003cp\u003eIf the output is being read by an MCU, it is advisable to operate the sensor at the same voltage as the MCU so that the sensor output will be compatible with the range of the analog input.\u003c\/p\u003e\n\u003cp\u003eThe power draw is stated as 4mA nominal but it will vary with Vcc.  At 3.3V it draws 5mA and at 5V, it draws 7.8mA.  It is possible to power the device off a MCU digital output pin.\u003c\/p\u003e\n\u003ch3\u003eAnalog Output\u003c\/h3\u003e\n\u003cp\u003eThe sensor output is an analog voltage.   When no magnetic field is detected, the output will rest at approximately 1\/2 Vcc.  If the south pole of the magnet is brought near, the output will linearly ramp towards Vcc and if the north pole of the magnet is brought near, the output will linearly ramp towards ground.\u003c\/p\u003e\n\u003cp\u003eIn the case of Vcc being 5V, with no magnetic field present the output will rest at about 2.5V.  If the south pole of the magnet is brought near, the output will raise linearly up to a maximum of about 4.2V.  If the north pole is brought near, the output will lower linearly to a minimum of about 1.0V.\u003c\/p\u003e\n\u003cp\u003eThe output is typically read by an ADC port on a uC if the strength or pole of the magnetic field is important.  Optionally it can  be run into a comparator like the LM393 if a digital output with an adjustable set-point is desired.  If you are just counting the number of times a magnet goes by, this is easier than working with the analog output.  Digital Hall-effect sensors are also available for this purpose.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eHall-effect sensors are quite useful in a number of applications and one of the more under utilized electronic components available to hobbyists.  These particular sensors are used in many of the analog hall effect sensor modules that come out of China.\u003c\/p\u003e\n\u003cp\u003eThe program below monitors the output of the sensor and reports the value of the analog output.  Simply hook the sensor up to 5V \/ 3.3V and ground and connect the sensor output pin to a analog pin on the MCU.  We use pin A0 in this example but this can be any analog input pin.\u003c\/p\u003e\n\u003cp\u003eTo calibrate the circuit, run the program with no magnet near the sensor and record the ‘rawValue’ that is being reported.  Now change the ‘zeroLevel’ value in the program to the rawValue reading you recorded.  This value will be subtracted by the program so that the rawValue reading = 0.0 when no magnetic field is present.  Download the updated program and the rawValue reading should now show 0.0.\u003c\/p\u003e\n\u003cp\u003eAs the south pole of a magnet is brought near, the value should start to increase.  If the north pole of a magnet is brought near, the value should decrease (increase in the negative direction).\u003c\/p\u003e\n\u003ch3\u003eHall-effect Sensor Analog 49E Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eAnalog 49E Hall Effect sensor test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code for reading the analog output of the 49E hall effect sensor. \u003c\/span\u003e\n\u003cspan\u003eSensor is connected to A0, but can be any analog input pin.\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eAnalogPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e2.57\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Sensor outputs approx 1.9mV \/ Gauss.  \u003c\/span\u003e\n                                    \u003cspan\u003e\/\/ ADC step is about 4.89mV \/ Step for 5V operation. \u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e               \u003cspan\u003e\/\/ Raw ADC Reading\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e518.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Adjust value as needed to get zero rawValue output with no magnetic field.\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e         \u003cspan\u003e\/\/ Set comm speed for debug window messages\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e-\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Output normalized to '0' with no field present\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading Raw: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003erawValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e\/\/ Reading positive relative to the South Pole, the North Pole negative\u003c\/span\u003e\n  \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading in Gauss: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003egaussValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e3000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE SENSORS ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample tested per incoming shipment\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"883\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 2.3 – 10V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e           Output\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e No magnetic field detected\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e1\/2 Vcc (typ)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMagnetic field detected – South pole max gauss\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e4.2V (Vcc = 5V)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMagnetic field detected – North pole max gauss\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e1.0V (Vcc = 5V)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003e          Sensitivity\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e1.9mV\/GS (± 0.2mV\/GS)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Maximum Gauss\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e±1200 GS\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Power consumption\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Varies with Vcc\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e5mA @ 3.3V,  7.8mA @ 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eSIP-3L\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage Type\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePlastic, thru-hole\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMfr\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003cspan\u003e\u003ca href=\"http:\/\/p.globalsources.com\/IMAGES\/PDT\/SPEC\/440\/K1139513440.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cstrong\u003e49E Hall Effect Sensor\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45674457923819,"sku":"","price":0.97,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/49E-Analog-Hall-Effect-Sensor-Front.jpg?v=1723007451"},{"product_id":"hall-effect-sensor-digital-3144","title":"Hall-Effect Sensor Digital 3144","description":"\u003cp\u003e\u003cspan\u003eThe 3144 sensor can detect the presence of a magnetic field and a output logic level.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Hall-Effect Sensor Digital 3144 can detect the the presence or absence of a magnetic field and outputs a logic level.\u003c\/p\u003e\n\u003ch2\u003ePACKAGE INCLUDES:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHall-Effect Sensor Digital 3144\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HALL-EFFECT SENSOR ANALOG 3144:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSenses presence or absence of magnetic field and provides logic level output\u003c\/li\u003e\n\u003cli\u003eOperates over range of 4.5-24V (5V compatible)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eHall-effect sensors are commonly used for measuring the speed of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates.  They can also be used for applications such as determining when a door has been opened, position sensing and detecting the magnetic field created by current flow in a wire.\u003cimg decoding=\"async\" class=\"alignright size-full wp-image-5501 entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg\" alt=\"49E Hall Effect Sensor Pinout\" width=\"100\" height=\"330\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg 100w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-91x300.jpg 91w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-57x187.jpg 57w\" data-lazy-sizes=\"(max-width: 100px) 100vw, 100px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 100px) 100vw, 100px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout.jpg 100w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-91x300.jpg 91w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/06\/49E-Hall-Effect-Sensor-Pinout-57x187.jpg 57w\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe 3144 sensor can detect the basic presence of the magnetic field, but not the relative strength.  The side of the sensor with the labeling is the side used for detection and detects the one pole of the magnet.  The other side of the device will detect the other pole of the magnet.  If the sensor does not seem to be detecting the magnet, try reversing it.\u003c\/p\u003e\n\u003cp\u003eHall-effect sensors have several advantages over mechanic switches, chief among them are that by being solid-state, there is no concern about contacts wearing out and the switching speed can be quite high, as fast as 2uS.\u003c\/p\u003e\n\u003cp\u003eThe main challenge with using Hall-effect sensors usually resides around the mounting of the sensor and any associated magnets.\u003c\/p\u003e\n\u003ch3\u003ePower Supply\u003c\/h3\u003e\n\u003cp\u003eThe sensor can operate over a Vcc range of 4.5-24V.\u003c\/p\u003e\n\u003cp\u003eIf the output is being read by an MCU, it is advisable to operate the sensor at the same voltage as the MCU so that the sensor output will be compatible with the digital input on the MCU\u003c\/p\u003e\n\u003cp\u003eIt is possible to power the device off a 5V MCU digital output pin.\u003c\/p\u003e\n\u003ch3\u003eDigital Output\u003c\/h3\u003e\n\u003cp\u003eThe sensor output is open collector.  A pull-up resistor of about 10K is normally used to pull the output high.  This can be an external resistor or can be a built-in pull-up resistor on the MCU input.  When a magnetic field is detected, the sensor pulls the output LOW.\u003c\/p\u003e\n\u003cp\u003eWhen the sensor output goes LOW, it can sink up to 25mA of current.\u003c\/p\u003e\n\u003cp\u003eThe output is typically read by a digital pin on an MCU.  Optionally in some cases it may be able to drive a secondary circuit directly.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eHall-effect sensors are quite useful in a number of applications and one of the more under utilized electronic components available to hobbyists.  These particular sensors are used in many of the digital hall effect sensor modules that come out of China.\u003c\/p\u003e\n\u003cp\u003eThe program below monitors the output of the sensor and reports when it detects a state change.  Simply hook the sensor up to 5V and ground and connect the sensor output pin to a digital pin on the MCU.  We use pin D4 in this example but this can be any digital input pin.\u003c\/p\u003e\n\u003cp\u003eAfter downloading, open the Serial Monitor window to see the output.  If the state does not change when the magnet is brought near, try reversing the magnet (swap north \u0026amp; south ends).\u003c\/p\u003e\n\u003ch3\u003eDigital Hall-effect Sensor Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eDigital Hall Effect Module Test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code for monitoring the output of the sensor.  \nConnect Output pin of sensor to D4 and connect 5V and Ground \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensorPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e4\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Arbitrary digital pin for monitoring the output\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Current state of the sensor\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/Place to save our previous state\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT_PULLUP\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Enable pull-up as sensor output is open collector\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Set output window comm rate\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Read the current state of the sensor\u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e!=\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e             \u003cspan\u003e\/\/ State has changed, so print out new state\u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Current State: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n   \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                 \u003cspan\u003e\/\/ Remember last state we were in\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE SENSORS ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample tested per incoming shipment\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"883\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 4.5 – 24V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e      Output\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e No magnetic field detected\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to Vcc by pull-up resistor\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMagnetic field detected\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to ground by sensor\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e     Maximum Current\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eSinking\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e25mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eSIP-3L\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage Type\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePlastic, thru-hole\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMfr\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003cspan\u003e\u003ca href=\"https:\/\/components101.com\/sites\/default\/files\/component_datasheet\/A3144%20Hall%20effect%20Sensor.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cstrong\u003e3144 Hall Effect Sensor\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45674458284267,"sku":"","price":0.97,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/3144-Digital-Hall-Effect-Sensor-Front.jpg?v=1723007446"},{"product_id":"hall-effect-sensor-digital-ah3373","title":"Hall-Effect Sensor Digital AH3373","description":"\u003cp\u003e\u003cspan\u003eDigital sensor can detect the presence or absence of magnetic field and provide digital output.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Hall-Effect Sensor Digital AH3373 can detect the presence or absence of a magnetic field and provides a digital open-drain output.\u003c\/p\u003e\n\u003ch2\u003ePACKAGE INCLUDES:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHall-Effect Sensor Digital AH3373-P-B\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HALL-EFFECT SENSOR DIGITAL AH3373:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSenses presence or absence of a magnetic field and provides a digital output\u003c\/li\u003e\n\u003cli\u003eOpen drain output can sink 50mA\u003c\/li\u003e\n\u003cli\u003e3V to 28V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eHall-effect sensors are commonly used for measuring the speed of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates.  They can also be used for applications such as determining when a door has been opened, position sensing and detecting the magnetic field created by current flow in a wire.\u003c\/p\u003e\n\u003cp\u003eHall-effect sensors have several advantages over mechanic switches, chief among them are that by being solid-state, there is no concern about contacts wearing out and the switching speed can be\u003cspan\u003e \u003c\/span\u003e\u003cimg decoding=\"async\" class=\"alignright size-full wp-image-5515 entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/AH337-Pinout.jpg\" alt=\"AH337 Pinout\" width=\"94\" height=\"280\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/AH337-Pinout.jpg 94w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/AH337-Pinout-63x187.jpg 63w\" data-lazy-sizes=\"(max-width: 94px) 100vw, 94px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/AH337-Pinout.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 94px) 100vw, 94px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/AH337-Pinout.jpg 94w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/03\/AH337-Pinout-63x187.jpg 63w\"\u003equite high.\u003c\/p\u003e\n\u003cp\u003eThe sensors are fairly straight forward to integrate with a MCU, especially digital versions like this one where the output is either high or low and can be read the same as a standard mechanical switch would be.\u003c\/p\u003e\n\u003ch3\u003eTheory Of Operation\u003c\/h3\u003e\n\u003cp\u003eThe AH3373 has a digital output which is driven LOW when a magnetic field is detected.\u003c\/p\u003e\n\u003cp\u003eThe output has a Schmitt trigger to provide some hysteresis for noise rejection.\u003c\/p\u003e\n\u003cp\u003eWhen the magnetic field is removed, the output is open-drain and an external resistor is used to pull the output HIGH.  Most MCU like Arduino have pull-up resistors that can be enabled on their input pins as we do in the example below so that a physical resistor is not needed for the pull-up.\u003c\/p\u003e\n\u003cp\u003eThe sensor does not detect the relative strength of the magnetic field, just its presence which makes it easier to use than an analog Hall-effect sensor.  If it is desired to measure the strength of the field, then an analog Hall-effect sensor can be used for that purpose.\u003c\/p\u003e\n\u003cp\u003eIn addition, this device is unipolar.  This means that one side of the device (the side with the markings) will detect the south pole of a magnet and the other side of the device will detect the north pole.  If the sensor does not seem to be detecting the magnetic field, try turning either the magnet or the sensor around.\u003c\/p\u003e\n\u003ch3\u003ePower Supply\u003c\/h3\u003e\n\u003cp\u003eThese devices are able to handle a wide input voltage range of 3.0 to 28V, but will normally be operated off of 3.3V or 5V for compatibility with an attached microcontroller.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eHall-effect sensors are quite useful in a number of applications and are one of the more under utilized electronic components available to hobbyists.\u003c\/p\u003e\n\u003cp\u003eThe main challenge with using Hall-effect sensors usually resides around the mounting of the sensor and any associated magnets.\u003c\/p\u003e\n\u003cp\u003eThe program below monitors the output of the sensor and reports when it detects a state change.  Simply hook the sensor up to 3.3V or 5V and ground to match the microcontroller and connect the sensor output pin to a digital pin on the microcontroller.  We use pin 4 in this example, but it can be any digital pin.\u003c\/p\u003e\n\u003ch3\u003eHall-effect Sensor Digital AH337 Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003e  Digital Hall Effect Module Test\u003c\/span\u003e\n\n\u003cspan\u003e  Basic code for monitoring the output of a digital Hall-effect sensor\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003e#define\u003c\/span\u003e \u003cspan\u003eSENSOR_PIN\u003c\/span\u003e \u003cspan\u003e4\u003c\/span\u003e  \u003cspan\u003e\/\/ Use any available digital pin\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e        \u003cspan\u003e\/\/ Current state of the sensor\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/Place to save our previous state\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eSENSOR_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT_PULLUP\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Enable pullup on this pin since sensor output is open collector\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Set output window comm rate\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eSENSOR_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Read the current state of the sensor\u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e!=\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e             \u003cspan\u003e\/\/ State has changed, so print out new state\u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Current State: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                 \u003cspan\u003e\/\/ Remember last state we were in\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"883\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 3.0 – 28V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e           Output\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e No magnetic field detected\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e Open drain (normally pulled up to Vcc)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMagnetic field detected\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 200mV (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Output Current\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e50mA max\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eSIP-3L\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage Type\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePlastic, thru-hole\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMfr\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eDiodes Incorporated\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"https:\/\/www.diodes.com\/assets\/Datasheets\/products_inactive_data\/AH3373.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eAH3373\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45674462380267,"sku":"","price":2.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/AH3373-Hall-Effect-Sensor.jpg?v=1723007444"},{"product_id":"lm35-analog-temperature-sensor","title":"LM35 Analog Temperature Sensor","description":"\u003cp\u003e\u003cspan\u003ePopular option for analog temperature sensing over the range of -55 to 150°C.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe LM35 Analog Temperature Sensor is a popular option for temperature sensing over the range of -55 to 150°C.\u003c\/p\u003e\n\u003ch2\u003ePACKAGE INCLUDES:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eLM35 Temperature Sensor\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF LM35 ANALOG TEMPERATURE SENSOR:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eProvides analog output directly readable in degrees Celsius\u003c\/li\u003e\n\u003cli\u003eOutput voltage corresponds to 10.0mV\/°C\u003c\/li\u003e\n\u003cli\u003e-55 to 150°C measurement range with ±0.5°C accuracy°\u003c\/li\u003e\n\u003cli\u003e5V compatible.  3.3V uC compatible if the sensor is run off separate 4 to 20V supply.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eIf you have a uC like an Arduino and you want to measure temperature, the LM35 is one of the more popular temperature measurement ICs to use.\u003cimg decoding=\"async\" class=\"alignright size-full wp-image-5548\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2017\/12\/LM35-Pinout.jpg\" alt=\"LM35 Pinout\" width=\"90\" height=\"214\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2017\/12\/LM35-Pinout.jpg 90w, https:\/\/protosupplies.com\/wp-content\/uploads\/2017\/12\/LM35-Pinout-79x187.jpg 79w\" sizes=\"(max-width: 90px) 100vw, 90px\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe LM35 is a 3-pin analog thermometer packaged in a TO-92 package.  The output is a linear voltage that corresponds to 10.0mV\/°C, so the output is directly readable in degrees Celsius using an analog port on a uC.  Accuracy is typically within 0.5°C.\u003c\/p\u003e\n\u003cp\u003eSince the voltage output range of the sensor is limited to 1.5V, if a greater resolution is desired, the analog reference voltage on the uC can be changed from the default 5V to something closer to 1.5V which will decrease the voltage step size on the analog readings.\u003c\/p\u003e\n\u003cp\u003eHook-up is very simple.  Connect GND pin to ground, Vs pin to 5V (or anything between 4 – 20V) and Vout pin to an analog pin on the uC.  The device can be left open air for measuring air temps or it can be glued or cemented to an object that you want to measure the temperature of such as a heat sink.\u003c\/p\u003e\n\u003cp\u003eWhen using the LM35 with a single supply voltage, the temperature measurement range is limited to 2°C to 150°C which is adequate for most applications.  If the negative range is required, see the datasheet for specifics.\u003c\/p\u003e\n\u003cp\u003eAn alternative for temperature measurement is to use a digital temperature sensor like the DS18B20 which comes in the same package.  Digital temp sensors tend to have better noise immunity which is useful when the sensor will be placed some distance away or is in an electrically noisy environment, but they do require a software library to implement the communication protocol.  Libraries are readily available for most common microcontrollers such as the Arduino and are very straightforward to use.\u003c\/p\u003e\n\u003chr\u003e\n\u003ch2\u003eOUR EVALUATION RESULTS:\u003c\/h2\u003e\n\u003cp\u003eThe LM35 can be used to experiment with a number of different applications where temperature measurement is useful such as determining when a cooling fan should be turned on and it is perfectly suitable for integration into a final product.\u003c\/p\u003e\n\u003cp\u003eThe program below simply reads the value from the LM35 using analog port A0, but this can be changed to any convenient analog port.  It then prints the temperature in Celcius and Farenheit out to the Serial Monitor window.\u003c\/p\u003e\n\u003cp\u003eThe program uses the line\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e\u003cspan\u003efloat\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003evoltage\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e=\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eraw_temp\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e*\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e5.0\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e\/\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e1024\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e*\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003e100\u003c\/span\u003e\u003c\/strong\u003e\u003cspan\u003e\u003cstrong\u003e;\u003c\/strong\u003e to convert the LM35 output to degrees Celsius.  \u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003eThis line simply takes the raw analog reading and multiples it by 5.0 because the ADC reference voltage is 5V.  It then divides that number by 1024 because the Arduino has a 10-bit ADC which gives 1024 steps of resolution.  The result of that bit of math gives us the voltage that we are measuring out of the LM35 (which will be in a range of 0 to 1.5V).  To get from voltage to temperature in Celcius, we multiply that number by 100 because the LM35 output is 0.010V per degree.\u003c\/p\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*  LM35 Analog Temperature Sensor Test\u003c\/span\u003e\n\n\u003cspan\u003e  Reads the output of LM35 connected to pin A0 and reports that temperature in degrees\u003c\/span\u003e\n\u003cspan\u003e  Celcius and Farenheit out to the Serial Monitor Window\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eLM35_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Define analog pin the LM35 is connected to\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003etemp_C\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003etemp_F\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e         \u003cspan\u003e\/\/ Define a couple of variables to hold the temperatures\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e       \u003cspan\u003e\/\/ Initialize Serial Monitor window comm speed\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003etemp_C\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eGet_Temp\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLM35_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Get the temp in C\u003c\/span\u003e\n  \u003cspan\u003etemp_F\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eC_To_F\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003etemp_C\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e         \u003cspan\u003e\/\/ Convert the temp from C to degrees F\u003c\/span\u003e\n  \u003cspan\u003e\/\/ Printout the results\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003etemp_C\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" Degrees C\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003etemp_F\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" Degrees F\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                    \u003cspan\u003e\/\/ Pause 1 sec then repeat\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Get_Temp - subroutine to read the temperature from the LM35\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eGet_Temp\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003epin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eraw_temp\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003epin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003evoltage\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eraw_temp\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003e5.0\u003c\/span\u003e \u003cspan\u003e\/\u003c\/span\u003e \u003cspan\u003e1024\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003e100\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Calculate temp based on raw reading\u003c\/span\u003e\n  \u003cspan\u003ereturn\u003c\/span\u003e \u003cspan\u003evoltage\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  C_To_F - subroutine to convert temp from Celcius to Fahrenheit\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eC_To_F\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003etemp\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003ereturn\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003etemp\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003e9\u003c\/span\u003e \u003cspan\u003e\/\u003c\/span\u003e \u003cspan\u003e5\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e+\u003c\/span\u003e \u003cspan\u003e32\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Basic formula for converting degrees C to F\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eInterface\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eAnalog\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eScale Factor\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e10.0mV \/ °C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eSupply Voltage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e30V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMinimum\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e4V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eTemperature\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Max Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e-55°C to +150°C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Accuracy (at +25°C)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e± 0.5°C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eTO-92\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003ePackage Type\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePlastic, thru-hole\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMfr\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eNational\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/lm35.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eLM35\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45674465853675,"sku":"","price":4.47,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/LM35-Analog-Celsius-Temp-Sensor.jpg?v=1723007407"},{"product_id":"analog-hall-effect-sensor-module","title":"Analog Hall Effect Sensor Module","description":"\u003cp\u003e\u003cspan\u003eUses the 49E sensor to detect N\/S pole and relative strength of magnetic field.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Analog Hall Effect Sensor Module uses the 49E sensor to detect North and South pole and relative strength of a magnetic field.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eAnalog Hall Effect Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF ANALOG HALL EFFECT MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUse 49E analog Hall Effect sensor\u003c\/li\u003e\n\u003cli\u003eCan differentiate between North and South pole of the magnet\u003c\/li\u003e\n\u003cli\u003eDetects the strength of the magnetic field\u003c\/li\u003e\n\u003cli\u003e3.3 or 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eHall Effect sensors detect the presence of a magnetic field and are commonly used for measuring the RPM of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates.  They can even be used to detect electrical current flow through conductors in some cases.\u003c\/p\u003e\n\u003cp\u003eThis sensor utilizes an analog 49E sensor.  With no magnetic field present, the sensor output rests at approximately 50% of Vcc.  In the case of 5V power, the output will be about 2.5V when at rest.  When a magnetic field comes near, the voltage will rise or fall depending on whether the south or north pole of the magnet is coming near.  If a south pole of a magnet is placed near the front of the sensor (side with the labeling), the output voltage will linearly ramp up towards Vcc to a maximum of 4.2V.  If the north pole of the magnet is presented, the voltage will linearly ramp down towards ground to a minimum of 0.86V.  The amount of the voltage rise or fall will depend on the magnetic strength of the field.\u003c\/p\u003e\n\u003cp\u003eTo use this analog sensor with a microcontroller,  it should be hooked up to an analog input.  The output will read approximately 1\/2 Vcc with no magnetic field present.  When a magnetic field approaches, the voltage will change linearly at a rate of 2.5mV \/ G.   Gauss (G) is the unit of measure for magnetism.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly.  There are a couple of different pin labeling schemes since the same board is used for several modules.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eG\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003eor\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e‘-‘\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eR\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003eor\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eCenter pin\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Vcc (3.3 or 5V typical)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eY\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003eor\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eS =\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eAnalog output, connects to analog input on MCU\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is an interesting module that can be used to experiment with a number of industrial type applications.  The analog version of the Hall Effect sensor is a little trickier to use than the digital version, but it can provide information that the digital sensor cannot provide such as which pole of the magnet is being presented as well as the relative strength of the magnetic field.\u003c\/p\u003e\n\u003ch3\u003eAnalog Hall Effect Sensor Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eAnalog Hall Effect module test\u003c\/span\u003e\n\u003cspan\u003eBasic code for reading the analog output of the hall effect module. \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eAnalogPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e1.96\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Sensor outputs 2.5mV \/ Gauss.  \u003c\/span\u003e\n                                    \u003cspan\u003e\/\/ ADC step is about 4.89mV \/ Step\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e530.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Adjust as needed to get zero output with no magnetic field present.\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e         \u003cspan\u003e\/\/ Set comm speed for debug window messages\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e-\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Output normalized to '0' with no field present\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading Raw: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003erawValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e\/\/ Reading positive relative to the South Pole, the North Pole negative\u003c\/span\u003e\n  \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading in Gauss: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003egaussValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e3000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eSample tested per incoming shipment\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eSame as or similar to the KY-035.\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"834\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 3 – 6.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Analog Output (no magnetic field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 1\/2 Vcc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Analog Output (Max South pole field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 4.2V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eAnalog Output (Max North pole field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e0.86V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eSensitivity\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e2.5mV \/ G\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e20mm x 15mm  (0.8 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLength including sensor\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e25mm  (1″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45680756359403,"sku":"","price":2.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/49E-Analog-Hall-Effect-Sensor-Module.jpg?v=1723006212"},{"product_id":"digital-hall-effect-sensor-module","title":"Digital Hall Effect Sensor Module","description":"\u003cp\u003e\u003cspan\u003e3144 sensor detects presence of magnetic field and outputs logic level.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Digital Hall Effect Sensor Module uses the 3144 sensor to detect the presence or absence of a magnetic field and outputs a logic level.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDigital Hall Effect Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF DIGITAL HALL EFFECT MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUse 3144 Digital Hall Effect sensor\u003c\/li\u003e\n\u003cli\u003eDetects presence or absence of a magnetic field\u003c\/li\u003e\n\u003cli\u003eLogic compatible Open Collector output\u003c\/li\u003e\n\u003cli\u003eLED indicator for magnetic field detected\u003c\/li\u003e\n\u003cli\u003e4.5 to 24V operation (5V logic compatible)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis module incorporates a digital Hall-effect sensor.  Hall effect sensors detect the presence of a magnetic field and are commonly used for measuring the RPM of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates, but can also be used for applications such as telling when a door has been opened and a magnet moves away from the sensor.\u003c\/p\u003e\n\u003cp\u003eHall-effect sensors have several advantages over mechanic switches, chief among them are that by being solid-state, there is no concern about contacts wearing out and the switching speed can be quite high.\u003c\/p\u003e\n\u003cp\u003eThis sensor utilizes a digital 3144 sensor so the output is either on or off depending on whether a magnetic field is detected.  It does not detect the relative strength of the magnetic field as an analog Hall-effect sensor does.\u003c\/p\u003e\n\u003cp\u003eThe device is Open Collector, so with no magnetic field present, the sensor output is turned off and it is normally pulled HIGH using a pull-up resistor.  Most microcontrollers like Arduino have pull-up resistors that can be enabled on their input pins as we do in the example below. When a magnetic field comes near, the sensor output is turned on and the output drops LOW.  When the output goes low, an on-board red LED lights to let you know a magnetic field was detected.\u003c\/p\u003e\n\u003cp\u003eThese devices are able to handle a wide input voltage range of 4.5-24V, but will normally be operated off of 5V for use with a microcontroller.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly.  There are a couple of different versions of the markings.   See pictures for clarification if needed.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eG \/ ‘-‘\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eR \/ Center pin\u003c\/strong\u003e = 5V\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eY \/ S =\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eSignal output, connects to digital input on MCU\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is an nice little module that can be used to experiment with a number of industrial type applications.\u003c\/p\u003e\n\u003cp\u003eThe sensor detects one pole of the magnet, so if it does not sense the magnetic field, turn the magnet or the sensor over.\u003c\/p\u003e\n\u003cp\u003eThe program below monitors the output of the sensor and reports when it detects a state change.\u003c\/p\u003e\n\u003ch3\u003eDigital Hall Effect Sensor Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eDigital Hall Effect Module Test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code for monitoring the output of the module. \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensorPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e4\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Arbitrary digital pin for monitoring the output\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Current state of the sensor\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/Place to save our previous state\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT_PULLUP\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Enable pullup on this pin since sensor output is open collector\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Set output window comm rate\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Read the current state of the sensor\u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e!=\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e             \u003cspan\u003e\/\/ State has changed, so print out new state\u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Current State: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n   \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                 \u003cspan\u003e\/\/ Remember last state we were in\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eThis module is the same as or similar to the KY-003\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"893\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 4.5 – 24V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e           Output\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e No magnetic field detected\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e Open Collector (normally pulled up to Vcc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMagnetic field detected\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 0.8V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003eOutput Current\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eOpen Collector\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e25mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e20mm x 15mm  (0.8 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45680771039467,"sku":"","price":2.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Digital-Hall-Effect-Sensor-1.jpg?v=1723006201"},{"product_id":"hc-sr501-pir-motion-sensing-module","title":"HC-SR501 PIR Motion Sensing Module","description":"\u003cp\u003e\u003cspan\u003eUses the infrared body heat to detect motion at up to 21 feet.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe HC-SR501 PIR Motion Sensing Module uses the infrared radiation produced by body heat to detect motion at up to a distance of 21 feet.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHC-SR501 PIR Motion Sensing Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HC-SR501 MOTION SENSING MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDetects body heat at distance of up to 21 feet with sensitivity control\u003c\/li\u003e\n\u003cli\u003eMultiple detection modes\u003c\/li\u003e\n\u003cli\u003e4.5 to 20V operation (5V compatible)\u003c\/li\u003e\n\u003cli\u003eAn optional bracket is available for mounting\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003ePIR (Passive Infrared) Motion Sensors are used to detect motion. They work by detecting the changes in infrared radiation that come from body heat. The sensor has two windows that have different fields of view. Since infrared comes from many different sources, it is differences in infrared between what the two sensor windows detect within a short period of time that is determined to be motion.\u003c\/p\u003e\n\u003cp\u003eThe sensors have a range of up to 7 meters (21 feet) with sensitivity, time delay and trigger options that allow it to be optimized for your application.  The sensor has a white plastic dome over it. This dome is used to increase the field of view and to help provide some protection to the sensor.\u003c\/p\u003e\n\u003cp\u003eA common use for the sensor is to detect when a person or animal moves in or out of the sensor range and then take some action such as turning lights on\/off, enabling a fan, enabling a Halloween prop or perhaps taking a picture.\u003c\/p\u003e\n\u003cp\u003eBasic operation is simple. Just apply power 4.5V – 20V and ground to the module. The sensor output is a logic HIGH when motion is detected and LOW when it is idle. This output can be connected to a microcontroller or it can be connected directly to a relay module that can handle a logic level input in a case where you just want to turn something on\/off based on motion.\u003c\/p\u003e\n\u003cp\u003eThere are two potentiometers and a jumper on the module that affect it’s behavior. Let’s take a look at each of these.\u003c\/p\u003e\n\u003ch3\u003eTrigger Mode\u003c\/h3\u003e\n\u003cp\u003eThe trigger mode determines how the module will react to each motion that it detects.  There are two basic modes of operation\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eMultiple Trigger Mode\u003c\/strong\u003e:  Constant motion will cause a series of triggers to occur while there is motion.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSingle Trigger Mode:\u003c\/strong\u003e  Constant motion will cause a single trigger to occur while there is motion.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eTrigger Select Jumper\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eL:\u003c\/strong\u003e Multiple Trigger Mode – The output goes HIGH as soon as motion is detected and stays HIGH for the duration of the Time Delay. Further detection is blocked until the output drops back to LOW at the end of the Time Delay.  If there is still motion, the module will immediately trigger again and the output will go HIGH again.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eH:\u003c\/strong\u003e Single Trigger Mode – The output goes HIGH as soon as motion is detected and stays HIGH for the duration of the time delay.  Unlike Multiple Trigger Mode, further motion detection is not blocked so the time delay is restarted each time motion is detected.  The output returns to LOW only after Time Delay once motion is no longer detected.\u003cimg decoding=\"async\" class=\"alignright size-full wp-image-8124 entered exited\" alt=\"HC-SR501 PIR Motion Sensing Module - Solder jumper\" width=\"291\" height=\"260\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-PIR-Motion-Sensing-Module-Solder-jumper.jpg 291w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-PIR-Motion-Sensing-Module-Solder-jumper-209x187.jpg 209w\" data-lazy-sizes=\"(max-width: 291px) 100vw, 291px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-PIR-Motion-Sensing-Module-Solder-jumper.jpg\" src=\"data:image\/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOTEgMjYwIj48L3N2Zz4=\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eNote\u003c\/strong\u003e:  Some modules have a berg jumper and some have 3 solder pads for setting the Trigger Mode.\u003c\/p\u003e\n\u003cp\u003eIf the module has 3 solder pads, a copper trace enables the H (single trigger) mode by default which is the most common to use.\u003c\/p\u003e\n\u003cp\u003eIf it is desired to enable the multiple trigger mode, cut the trace to the right of the ‘H’ pads and solder bridge the two ‘L’ solder pads as shown to the right.\u003c\/p\u003e\n\u003ch3\u003eSensitivity Adjust\u003c\/h3\u003e\n\u003cp\u003eThe Sensitivity Adjust Pot sets the maximum detection range. The sensitivity can be adjusted over a range of approximately 3 meters to 7 meters (9 – 21 feet). Turning the adjustment CW will increase the sensitivity and thus the range that it can detect movement.\u003c\/p\u003e\n\u003ch3\u003eTime Delay\u003c\/h3\u003e\n\u003cp\u003eThe Time Delay Adjust Pot sets how long the output remains HIGH after it detects motion. This can be adjusted from approximately 1 second up to about 3 minutes. Turning the adjustment CW increases the delay.  Turning it CCW decreases the delay.\u003c\/p\u003e\n\u003ch3\u003eLockout Time\u003c\/h3\u003e\n\u003cp\u003eNote that when the module output drops LOW, it will stay LOW for approximately 2 seconds. During this time, the motion sensing is locked out.\u003c\/p\u003e\n\u003cp\u003eIf you have the module set for a 1 second time delay and the jumper set to ‘L’ and wave your hand in front of the sensor, you will see the output go HIGH for 1 second and then drop LOW for about 2 seconds. After the 2 second lock-out, it will again go HIGH for 1 second and repeat for as long as you are waving your hands.\u003c\/p\u003e\n\u003ch3\u003ePower On Delay\u003c\/h3\u003e\n\u003cp\u003eOne important thing to note about the sensor is that it takes it about a minute after power is first applied for it to go through its initialization sequence where it learns the ambient infrared signature of its environment. Basically it is calibrating itself to its environment so that it can determine what constitutes motion.\u003c\/p\u003e\n\u003cp\u003eDuring that calibration time, false triggers are likely to occur so any triggers during this time should be ignored. It is important that there is not a lot of motion in the sensors view when it is going through its self-calibration as that can interfere with the calibration process.\u003c\/p\u003e\n\u003cp\u003eThe module has a very low power draw of \u0026lt; 2 mA. Because of the low power requirements, it can be powered off a digital output pin from a microcontroller if desired. If that is done, keep in mind the 1 minute startup time, so it is generally best to just keep it always powered while in use.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly.  The markings are hidden by the plastic dome, so refer to the picture for the pin-out.  The dome can also be easily removed to see the markings.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVCC\u003c\/strong\u003e =   Connect to 4.5V to 20V\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eOUTPUT\u003c\/strong\u003e =  Digital sensor output (active HIGH) – Normally connects to a digital input pin on a uC\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e =  Connect to system ground.  This ground needs to be in common with the uC\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cdiv id=\"attachment_4821\" class=\"wp-caption alignright\"\u003e\n\u003ca href=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic.jpg\"\u003e\u003cimg decoding=\"async\" aria-describedby=\"caption-attachment-4821\" class=\"wp-image-4821 size-medium entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg\" alt=\"HC-SR501 \u0026amp; SR505 Schematic\" width=\"300\" height=\"225\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic.jpg 800w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-249x187.jpg 249w\" data-lazy-sizes=\"(max-width: 300px) 100vw, 300px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic.jpg 800w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-249x187.jpg 249w\"\u003e\u003c\/a\u003e\n\u003cp id=\"caption-attachment-4821\" class=\"wp-caption-text\"\u003ePIR Motion Sensor Test Setup\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cp\u003eThese modules work very well with good sensitivity and are fun to play with as there are a lot of creative things that they can be used for such as home burglar sensing, trail game camera sensor, to waking up animated Halloween props when trick-or-treaters come up the sidewalk. \u003cspan\u003e \u003c\/span\u003e\u003cem\u003e\u003cstrong\u003eImportant Note\u003c\/strong\u003e:  Due to their lack of body heat, it will not work well for establishing a Zombie perimeter alarm.\u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003eFor breadboard use since these have caps and jumpers on the bottom, it can be handy to use a stackable type F\/M header to plug the module header into and then insert that into the breadboard.  That allows the sensor to sit up straight and gives access to the jumper and pots.\u003c\/p\u003e\n\u003cp\u003eThe program below uses a simple state machine to monitor the state of the sensor.  Basically it just checks on the state of the sensor attached to pin 4 and does something if it sees that the state has changed.  In this case, we are just turning an LED on\/off that is connected to pin 5 and also sending a status update to the Serial Monitor window.  This basic state machine technique allows the microcontroller to be off doing other things in-between checking on the sensor rather than using the more common Delay() type of technique between reading the sensor which blocks all other activity.\u003c\/p\u003e\n\u003cp\u003eThe LED is helpful as a visual indicator when wandering around to see how the detection works.  As usual, you will need to insert a 220 ohm or so current limiting resistor between the Arduino and the LED to keep everyone happy.\u003c\/p\u003e\n\u003ch3\u003eHC-SR501 PIR Motion Sensor Module Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003e  HC-SR501 PIR Motion Sensor Module Test\u003c\/span\u003e\n\n\u003cspan\u003e  Basic code for monitoring the output of the sensor and reporting the results\u003c\/span\u003e\n\u003cspan\u003e  to the Serial Monitor and by turning an LED on\/off.\u003c\/span\u003e\n\u003cspan\u003e  We hook the sensor pin up to pin 5 and the LED anode to pin 4.  The LED cathode \u003c\/span\u003e\n\u003cspan\u003e  should go to ground via a current limiting resistor.\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eSENSOR_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e5\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Use any available digital pins\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eLED_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e4\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e            \u003cspan\u003e\/\/  Current state of the sensor\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e        \u003cspan\u003e\/\/  Last state of the sensor\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLED_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Define LED pin as an output\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Set output window comm rate\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eSENSOR_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Read the current state of the sensor\u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e!=\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e             \u003cspan\u003e\/\/ State has changed\u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLED_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Update the LED with current state\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Current State: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Printout new state\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                 \u003cspan\u003e\/\/ Remember last state we were in\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003cp\u003eThe board has a 2 small holes that can be used for mounting if desired.  An optional acrylic mounting bracket is available below.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eActive circuitry is on the back of the module, so care should be used to avoid possible electrical shorts or damage to the caps.\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"1050\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e4.5 – 20V  (5V typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 2mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Time Delay\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e~ 1 sec to 3 min\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Distance\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 3 – 7 meters (9 – 21 feet)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Angle\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e120 degrees (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W x H\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e33 x 25mm (1.3 x 1 x 1″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheets\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.tzoic.cn\/Upload\/PicFiles\/2014.7.1_16.15.12_8697.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003ePIR600B Sensor\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.sc-tech.cn\/en\/BISS0001.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003eBISS0001 PIR Controller\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45680947658987,"sku":"","price":6.22,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/HC-SR501-PIR-Motion-Sensing-Module-1.jpg?v=1723006114"},{"product_id":"hc-sr501-pir-motion-sensor-mounting-bracket","title":"HC-SR501 PIR Motion Sensor Mounting Bracket","description":"\u003cp\u003e\u003cspan\u003eAcrylic bracket for mounting the HC-SR501 PIR Motion Sensor Module.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe HC-SR501 PIR Motion Sensor Mounting Bracket is an acrylic bracket for mounting the HC-SR501 PIR Motion Sensor Module.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHC-SR501 PIR Motion Sensor Mounting Bracket\u003c\/li\u003e\n\u003cli\u003e2 small screws \u0026amp; nuts for mounting the sensor to the mount\u003c\/li\u003e\n\u003cli\u003e2 large screws \u0026amp; nuts for attaching the mount to a surface.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HC-SR501 MOTION SENSOR MOUNTING BRACKET:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThe bracket has two small holes in the top for mounting the sensor to the bracket.  Two small screws and nuts are provided for attaching the sensor to the bracket.\u003c\/p\u003e\n\u003cp\u003eThe flange has two larger holes for mounting the bracket to a surface. Two larger screws and nuts are provided for attaching the sensor to the bracket or other hardware can be used depending on the mounting requirement.\u003c\/p\u003e\n\u003cp\u003eThe HC-SR501 PIR Motion Sensor can be inserted from either side of the bracket depending on other mounting considerations.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eVisually inspected\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"812\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eW x L\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e40 x 48mm (0.9 x 0.9″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eSensor hole W x L\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e23 x 23mm (0.75″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaterial\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eAcrylic 3mm thick\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45680967975147,"sku":"","price":1.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/HC-SR501-PIR-Motion-Sensing-Module-Mounting-Bracket.jpg?v=1723006106"},{"product_id":"hc-sr505-mini-pir-motion-sensing-module","title":"HC-SR505 Mini PIR Motion Sensing Module","description":"\u003cp\u003e\u003cspan\u003eUses IR from body heat to detect motion up to 10 feet.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe HC-SR505 Mini PIR Motion Sensing Module uses the infrared radiation produced by body heat to detect motion at up to a distance of 10 feet.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHC-SR505 Mini PIR Motion Sensing Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HC-SR505 MINI MOTION SENSING MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDetects body heat at distance of up to 10 feet\u003c\/li\u003e\n\u003cli\u003e4.5 to 20V operation (5V compatible)\u003c\/li\u003e\n\u003cli\u003eVery low power (70uA)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003ePIR (Passive Infrared) Motion Sensors are used to detect motion. They work by detecting the changes in infrared radiation that come from body heat. The sensor has two windows that have different fields of view. Since infrared comes from many different sources, it is differences in infrared between what the two sensor windows detect within a short period of time that is determined to be motion.\u003c\/p\u003e\n\u003cp\u003eThis sensor is similar to the HC-SR501, but this is a smaller package with fixed default operation and a bit easier to use whereas the HC-SR501 has a number of options that can be set.\u003c\/p\u003e\n\u003cp\u003eThe sensor has a range of 3-4 meters (9-12 feet).   When triggered, the sensor output goes HIGH for approximately 6-12 seconds then returns LOW.  If motion continues within the sensor range, the module will continue to retrigger and keep the output HIGH until the motion stops for at least 6-12 seconds.  The length of the time delay varies between sensors, but is fairly consistent for a given sensor.  The sensor has a white plastic dome over it. This dome is used to increase the field of view and to help provide some protection to the sensor.  The field of view is approximately 100 degrees.\u003c\/p\u003e\n\u003cp\u003eA common use for the sensor is to detect when a person or animal moves in or out of the sensor range and then take some action such as turning lights on\/off, enabling a fan, enabling a Halloween prop or perhaps taking a picture.\u003c\/p\u003e\n\u003cp\u003eBasic operation is simple. Just apply 5V and ground to the module. The sensor output is a logic HIGH when motion is detected and LOW when it is idle. This output can be connected to a uC or it can be connected directly to a relay module that can handle a logic level input in some cases if you just want to turn something on\/off based on motion.\u003c\/p\u003e\n\u003ch3\u003ePower On Delay\u003c\/h3\u003e\n\u003cp\u003eWhen the sensor is first powered on, it learns the ambient IR signature of its environment. Basically it is calibrating itself to its environment so that it can determine what constitutes motion.  This takes around 15 seconds.\u003c\/p\u003e\n\u003cp\u003eDuring that calibration time, false triggers are likely to occur so any triggers during this time should be ignored. It is important that there is not a lot of motion in the sensors view when it is going through its self-calibration as that can interfere with the calibration process.\u003c\/p\u003e\n\u003cp\u003eThe module has a very low power draw of about 70uA even when active. Because of the low power requirements, it can be powered off a digital output pin from a microcontroller if desired. If that is done, keep in mind the 15 second startup time.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’\u003c\/strong\u003e  =      Connect to 4.5V to 20V.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eOUT\u003c\/strong\u003e  =  Digital sensor output (active HIGH) – Normally connects to a digital input pin on a microcontroller\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘- ‘\u003c\/strong\u003e  =      Connect to system ground.  This ground needs to be in common with the microcontroller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cdiv id=\"attachment_4821\" class=\"wp-caption alignright\"\u003e\n\u003ca href=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic.jpg\"\u003e\u003cimg decoding=\"async\" aria-describedby=\"caption-attachment-4821\" class=\"wp-image-4821 size-medium entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg\" alt=\"HC-SR501 \u0026amp; SR505 Schematic\" width=\"300\" height=\"225\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic.jpg 800w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-249x187.jpg 249w\" data-lazy-sizes=\"(max-width: 300px) 100vw, 300px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic.jpg 800w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/HC-SR501-SR505-Schematic-249x187.jpg 249w\"\u003e\u003c\/a\u003e\n\u003cp id=\"caption-attachment-4821\" class=\"wp-caption-text\"\u003ePIR Motion Sensor Test Setup\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cp\u003eThese modules work very well with good sensitivity and are fun to play with as there are a lot of creative things that they can be used for such as home burglar sensing to waking up animated halloween props when trick-or-treaters come up the sidewalk.\u003c\/p\u003e\n\u003cp\u003eThe program below uses a simple state machine to monitor the state of the sensor.  Basically it just checks on the state of the sensor attached to pin 4 and does something if it sees that the state has changed.  In this case, we are just turning an LED on\/off that is connected to pin 5 and also sending a status update to the Serial Monitor window.  This basic state machine technique allows the microcontroller to be off doing other things in-between checking on the sensor rather than using the more common Delay() type of technique between reading the sensor which blocks all other activity.\u003c\/p\u003e\n\u003cp\u003eThe LED is helpful as a visual indicator when wandering around to see how the detection works.  As usual, you will need to insert a 220 ohm or so current limiting resistor between the Arduino and the LED.\u003c\/p\u003e\n\u003ch3\u003eHC-SR505 Mini PIR Motion Sensor Module Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003e  HC-SR505 PIR Motion Sensor Module Test\u003c\/span\u003e\n\n\u003cspan\u003e  Basic code for monitoring the output of the sensor and reporting the results\u003c\/span\u003e\n\u003cspan\u003e  to the Serial Monitor and by turning an LED on\/off.\u003c\/span\u003e\n\u003cspan\u003e  We hook the sensor pin up to pin 5 and the LED anode to pin 4.  The LED cathode \u003c\/span\u003e\n\u003cspan\u003e  should go to ground via a current limiting resistor.\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eSENSOR_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e5\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Use any available digital pins\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eLED_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e4\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e            \u003cspan\u003e\/\/  Current state of the sensor\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e        \u003cspan\u003e\/\/  Last state of the sensor\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLED_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Define LED pin as an output\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Set output window comm rate\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eSENSOR_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e    \u003cspan\u003e\/\/ Read the current state of the sensor\u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e \u003cspan\u003e!=\u003c\/span\u003e \u003cspan\u003elastState\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e             \u003cspan\u003e\/\/ State has changed\u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLED_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Update the LED with current state\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Current State: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Printout new state\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003elastState\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003estate\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                 \u003cspan\u003e\/\/ Remember last state we were in\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"1050\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e4.5 – 20V  (5V typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e70uA (measured)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Trigger Time\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e~ 8 -10 secs\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Distance\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 3-4 meters (9-12 feet)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Angle\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e100 degrees (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e25 x 10mm (1 x 0.4″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W x H (with sensor)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e34 x 12 x 12mm (1.34 x 0.47 x 0.47″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681292280043,"sku":"","price":4.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/HC-505-Mini-PIR-Motion-Sensor-Module.jpg?v=1723006098"},{"product_id":"infrared-counting-sensor-module","title":"Infrared Counting Sensor Module","description":"\u003cp\u003e\u003cspan\u003eCount or detect objects that move through the U-shaped uprights.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Infrared Counting Sensor Module is used to count or detect objects that move through the U-shaped detector uprights.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInfrared Counting Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF INFRARED COUNTING SENSOR MODULE  MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eIR transmitter \/ receiver pair\u003c\/li\u003e\n\u003cli\u003eLM393 comparator circuit for clean detection\u003c\/li\u003e\n\u003cli\u003eLED indicator of detection\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe module has an IR transmitter and receiver pair that face each other across a U-shaped housing.  An object moving through these uprights breaks the IR beam.\u003c\/p\u003e\n\u003cp\u003eThese modules are typically used to count something as it passes through the uprights.  This could be cogs on a wheel if it is counting revolutions or RPM, or something like pellets dropping through a chute if it is part of a feeder for a pellet stove or rabbit.  Another use is as an optical limit switch  or to detect when something is open or closed if it causes an object to move in or out of the beam.\u003c\/p\u003e\n\u003cp\u003eThe sensor output is normally LOW and the red LED on the module will be normally lit.  If the IR beam between the uprights is broken, the output goes HIGH and the LED goes off.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThe module has a 3 pin header for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e– Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eOUT\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e– Output, normally LOW.  Goes HIGH when IR beam is broken\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eVCC\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e– 3.3 – 5V\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe module has two holes for mounting.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eWhile this module is similar in functionality to the less expensive Light Block Sensor Module, the Infrared Counting Sensor Module has much higher and wider detector uprights and a LM393 comparator circuit that make it more robust and flexible in applications it can be used in.\u003c\/p\u003e\n\u003cp\u003eThe example program below simply monitors the output of the module and if the beam is broken, it turns the on-board LED on.  It used pin 8 in the example, but this can be changed to any digital input pin.\u003c\/p\u003e\n\u003ch3\u003eInfrared Counting Sensor Module Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eLight Interrupter Sensor Test\u003c\/span\u003e\n\n\u003cspan\u003eMonitor output from sensor module and light the on-board LED when\u003c\/span\u003e\n\u003cspan\u003ean object is blocking the IR beam between the sensor uprights.\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensorPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e8\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e   \u003cspan\u003e\/\/ Can be any digital input pin\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eledPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e13\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e       \u003cspan\u003e\/\/ Pin that on-board LED is connected to\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensorVal\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ variable to store the value coming from the sensor\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eledPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ LED pin as output\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/Sensor pin as input\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/=============================================================================== \u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003esensorVal\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/read the value of the sensor \u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorVal\u003c\/span\u003e \u003cspan\u003e==\u003c\/span\u003e \u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e\/\/ turn on LED when sensor is blocked \u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eledPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n  \u003cspan\u003eelse\u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eledPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"1015\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3-5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Logic high (Vcc = 5V)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026gt; 3.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLogic Low\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 0.2V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eDimensions\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e25 x 20mm  (1 x 0.8″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eHeight U-Channel\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e15mm  (0.59″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eH x W (Inside U-Channel)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e12 x 10mm  (0.47 x 0.39″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eDepth of intrusion into U-Channel to interrupt beam\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3mm  (0.12″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681300865259,"sku":"","price":3.22,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Infrared-Counting-Sensor-Module-1.jpg?v=1723006080"},{"product_id":"ir-obstacle-avoidance-sensor-module","title":"IR Obstacle Avoidance Sensor Module","description":"\u003cp\u003e\u003cspan\u003eUses an infrared emitter \/ receiver pair to detect obstacles\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe IR Obstacle Avoidance Sensor Module uses an infrared emitter \/ receiver pair to detect obstacles in front of the sensor.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eIR Obstacle Avoidance Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF IR OBSTACLE AVOIDANCE SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDetection range from 2 cm to a maximum of 10 – 40 cm\u003c\/li\u003e\n\u003cli\u003eUses HS0038B IR Receiver\u003c\/li\u003e\n\u003cli\u003eOscillator frequency and duty cycle adjustment potentiometers\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis IR Obstacle Avoidance Sensor uses an IR emitting LED and IR Receiver pair to detect obstacles in front of the sensor by the IR Receiver detecting the IR that is bounced of an object by the IR Emitter.  Per specification, the device can detected objects in the range of 2 to 40 cm in front of it.\u003c\/p\u003e\n\u003cp\u003eThe clear LED is the IR emitter and the black device next to it is the HS0038B IR Receiver.  The black case of the receiver helps to block light that is not in the IR spectrum.  The device works by operating the IR LED at a frequency of 38KHz and detecting the IR energy from the LED which is bounced off an object and directed back at the IR Receiver module which is looking for an IR signal in the 38KHz frequency range.\u003c\/p\u003e\n\u003cp\u003eThe board includes two indicator LEDs.  The PLED is illuminated when the board receives power.  The SLED is illuminated momentarily when an obstacle is detected.\u003c\/p\u003e\n\u003ch3\u003eModule Adjustments\u003c\/h3\u003e\n\u003cp\u003eThe module includes a 555 timer that is used to drive the IR LED. There are two single-turn potentiometers for adjusting the frequency and duty cycle of the 555 timer.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eFrequency Adjust: \u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe module operates at 38 kHz as the HS0038B receiver module is designed to specifically look for IR pulsing at a 38 kHz rate.  The potentiometer next to the GND pin is used to adjust the frequency of the 555 timer and is set to approximately 38 kHz from the factory and shouldn’t be readjusted unless you have a scope or frequency counter to calibrate the frequency.  We have noted that some modules function best at a higher frequency up around 41kHz.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eDuty Cycle Adjust:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe other potentiometer allows for adjustment of the duty cycle of the 555 timer.  This affects the brightness of the IR LED and it can be fiddled with to try to change the distance at which objects are detected.\u003c\/p\u003e\n\u003cp\u003eIf this potentiometer is adjusted too far CW, the module may show that it is always detecting an obstacle even when it isn’t.  In this case, adjust the potentiometer CCW until the LED goes off when there is no obstacle in front of the sensor.\u003c\/p\u003e\n\u003ch3\u003eContinuous \/ Pulse Mode Jumper:\u003c\/h3\u003e\n\u003cp\u003eThere is a jumper on the assembly that when installed causes the 555 timer to operate continuously.   This mode is most useful for basic testing of the module without requiring it to be hooked to a MCU.\u003c\/p\u003e\n\u003cp\u003eIf the jumper is removed, the\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eEN\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003epin on the 4-pin header is then used to enable the 555 timer to operate.  This is the more typical way to use this module if using it in an actual application.  The reason is the HS0038B receiver module is designed to filter out any IR signals that it sees continually, so it is better to pulse the IR.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 4-pin header on the assembly for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1×4 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Ground.  Must be common with the MCU ground.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e+\u003c\/strong\u003e = Power (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eOUT\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Output, normally HIGH.  Output is pulsed LOW when an obstacle is detected.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eEN\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Enable, active HIGH.  When the on-board jumper is installed, EN is pulled to Vcc and always enabled.  If jumper is removed, an output pin from a MCU can be used to enable the device.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a commonly used module for basic obstacle detection such as used on entry level robotic vehicles.\u003c\/p\u003e\n\u003cp\u003eIn our experience, these devices vary quite a bit as to the distance that objects can be detected both due to the way the devices are used as well as variances in the devices themselves.  Some seem to max out at around 10cm while others will go up to 40cm or further.  Making sure the IR emitter and receiver are pointed straight forward can help maximize the distance.  They sometimes get tweeked around during shipping and handling.\u003c\/p\u003e\n\u003cp\u003eIf you are looking for a more capable obstacle avoidance sensor, we have a number available some of which are listed below including both IR and Ultrasonic types.\u003c\/p\u003e\n\u003cp\u003eAs shipped, the module has a jumper installed which causes the oscillator to run continuously.  The basic functionality can be easily tested in this mode by applying ground and 3.3V or 5V to the ground and power pins and then temporarily inserting and removing an object from in front of the IR LED\/Detector pair.  The detection LED will blink when it detects an obstacle.  IR reflectivity of the object will have an effect on the distance that it will be detected at.\u003c\/p\u003e\n\u003cp\u003eIn most cases, it is beneficial to shield the IR Transmitter LED from the receiver to prevent accidental direct coupling by using a short section of heat shrink or other tubing.  We add this if it is not already present on the module\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e  If you found this page because you bought this module elsewhere and it is not working correctly, it is not uncommon for the C1 and C2 capacitors to be swapped.  C2 near the IR Receiver should be a fairly thick capacitor and C1 near the IC should be much thinner as can be seen in the pictures.  \u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003eThe device is based on the HS0038B IR receiver which is an older part.  One example of the datasheet can be found\u003cspan\u003e\u003cstrong\u003e \u003ca href=\"http:\/\/www.arm9board.net\/download\/OK6410\/docs\/HS0038B.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003ehere\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e.  As can be seen from the datasheet, the IR detector is designed to reject signals that it sees continually as noise, so the IR detector is primarily designed to operate in a burst mode where the oscillator is enabled via the EN pin before the detector output is checked for an obstacle and it is then disabled again.\u003c\/p\u003e\n\u003cp\u003eAn example program that operates the device in this burst mode is shown below.  It uses pins 8 \u0026amp; 9 for connecting to the module, but these can be any 2 digital pins.\u003c\/p\u003e\n\u003cp\u003eFor this software to work, be sure to remove the jumper from the board.\u003c\/p\u003e\n\u003ch3\u003eIR Obstacle Avoidance Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eExercise IR Obstacle Avoidance Sensor\u003c\/span\u003e\n\n\u003cspan\u003eBasic code to implement obstacle detection using the EN pin to enable the device.  \u003c\/span\u003e\n\u003cspan\u003eWhen the EN pin is enabled, it will cause a false detect trigger, so it is necessary to enable\u003c\/span\u003e\n\u003cspan\u003eand then delay reading the detection output pin.  This also includes a 2nd read to make sure any\u003c\/span\u003e\n\u003cspan\u003edetection is valid.  \u003c\/span\u003e\n\u003cspan\u003eIf an obstacle is detected, you would obviously want to implement some type of \u003c\/span\u003e\n\u003cspan\u003eavoidance rather than simply loop as we do here.\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eLEDPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e13\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ On board LED\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eEnablePin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e8\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e   \u003cspan\u003e\/\/ Arbitrary digital pins that are connected to device.\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eOutputPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e9\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\n\u003cspan\u003eboolean\u003c\/span\u003e \u003cspan\u003eobjectDetect\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003efalse\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLEDPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ LED\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eEnablePin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Enable Pin of the device\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eOutputPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e   \u003cspan\u003e\/\/ Output Pin of the device\u003c\/span\u003e\n\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e \u003cspan\u003eEnablePin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Enable the internal 38kHz signal from the 555 timer.\u003c\/span\u003e\n \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                            \u003cspan\u003e\/\/ Wait 1mSec for signal to stabilize \u003c\/span\u003e\n \u003cspan\u003eif\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e \u003cspan\u003eOutputPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e         \u003cspan\u003e\/\/ If detector Output is HIGH,\u003c\/span\u003e\n \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003eobjectDetect\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003efalse\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e             \u003cspan\u003e\/\/ then no object was detected;\u003c\/span\u003e\n \u003cspan\u003e}\u003c\/span\u003e\n \u003cspan\u003eelse\u003c\/span\u003e                                 \u003cspan\u003e\/\/ If the Output is LOW,\u003c\/span\u003e\n \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                         \u003cspan\u003e\/\/ wait for another 1mSec and check again\u003c\/span\u003e\n    \u003cspan\u003eif\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eOutputPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e       \u003cspan\u003e\/\/ If the Output is now HIGH,\u003c\/span\u003e\n    \u003cspan\u003e{\u003c\/span\u003e                                 \u003cspan\u003e\/\/ then first Read was noise\u003c\/span\u003e\n        \u003cspan\u003eobjectDetect\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003efalse\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e         \u003cspan\u003e\/\/ and no object was detected, so ignore\u003c\/span\u003e\n    \u003cspan\u003e}\u003c\/span\u003e\n    \u003cspan\u003eelse\u003c\/span\u003e                              \u003cspan\u003e\/\/ else if the Output is still LOW,\u003c\/span\u003e\n    \u003cspan\u003e{\u003c\/span\u003e\n        \u003cspan\u003eobjectDetect\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003etrue\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e          \u003cspan\u003e\/\/ then a valid object was detected.\u003c\/span\u003e\n        \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLEDPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ turn on LED to show the detection.\u003c\/span\u003e\n        \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Object Detected\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Also send detection to the serial monitor window\u003c\/span\u003e\n        \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e500\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n        \u003cspan\u003edigitalWrite\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eLEDPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ turn LED back off     \u003c\/span\u003e\n    \u003cspan\u003e}\u003c\/span\u003e\n \u003cspan\u003e}\u003c\/span\u003e\n  \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e \u003cspan\u003eEnablePin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Disable the internal 38kHz signal.\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                        \u003cspan\u003e\/\/ wait for 1 Sec or some other arbitrary time period\u003c\/span\u003e\n                                      \u003cspan\u003e\/\/and then do again.\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003cp\u003eThe board has a single hole in the middle that can be used for mounting.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eHeat shrink added to IR LED if not present\u003c\/li\u003e\n\u003cli\u003eBasic obstacle detection output verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a high quality resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"862\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 to 5.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt;5mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Frequency\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eDetector Center Frequency\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e38KHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Distance\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e2 – 40cm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e45 x 17mm (1.77 x 0.67″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"http:\/\/www.arm9board.net\/download\/OK6410\/docs\/HS0038B.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eHS0038B\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681304371435,"sku":"","price":3.12,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/IR-Obstacle-Avoidance-Module-1.jpg?v=1723006076"},{"product_id":"light-block-sensor-module","title":"Light Block Sensor Module","description":"\u003cp\u003e\u003cspan\u003eUses Infrared (IR) beam interruption to detect objects that move through the U-shaped detector uprights.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Light Block Sensor Module uses Infrared (IR) to detect objects that move through the U-shaped detector uprights.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eLight Block Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF LIGHT BLOCK SENSOR MODULE  MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eIR transmitter \/ receiver pair\u003c\/li\u003e\n\u003cli\u003e3.3V and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe module has an IR transmitter and receiver pair that face each other across a U-shaped housing.  An object moving between these uprights breaks the IR beam.\u003c\/p\u003e\n\u003cp\u003eThis is a basic module that can be used in applications which use an interruption in a light beam to detect something.  One application includes mounting the sensor where a spinning wheel travels through the U-Channel.  Cogs or gaps in the edge of the wheel can be detected to calculate RPM, speed or movement.  It can also be used to detect if something is open or closed if a a piece of the object moves in and out of the channel when it is opened or closed.\\\u003c\/p\u003e\n\u003cp\u003eThe output of the module is normally LOW.  When an object blocks the light from crossing this housing, the output goes HIGH.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThe module has a 3 pin header for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘-‘\u003c\/strong\u003e = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCenter pin\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= 3.3 or 5V to match MCU\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eS\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Signal output, connects to digital input pin on MCU\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test.jpg\"\u003e\u003cimg decoding=\"async\" class=\"alignright wp-image-10407 size-medium entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-300x225.jpg\" alt=\"Light Block Sensor Module - In Test\" width=\"300\" height=\"225\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test.jpg 800w\" data-lazy-sizes=\"(max-width: 300px) 100vw, 300px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-300x225.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Light-Block-Sensor-Module-In-Test.jpg 800w\"\u003e\u003c\/a\u003e\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese are easy to use modules.  Just hook up power, ground and connect the sensor output pin to a digital input pin on an MCU to monitor it.\u003c\/p\u003e\n\u003cp\u003eIf you want a little more capable sensor of this type with larger uprights and a comparator output, check out the Infrared Counting Sensor Module below.\u003c\/p\u003e\n\u003cp\u003eOur example program below monitors the sensor and lights the on-board LED when the sensor is blocked.\u003c\/p\u003e\n\u003cp\u003eWe have the sensor pin hooked to pin 8, but can be set to work with any digital input pin.\u003c\/p\u003e\n\u003ch3\u003eLight Block Sensor Module Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eLight Interrupter Sensor Test\u003c\/span\u003e\n\n\u003cspan\u003eMonitor output from sensor module and light the on-board LED when\u003c\/span\u003e\n\u003cspan\u003ean object is blocking the IR beam between the sensor uprights.\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensorPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e8\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e   \u003cspan\u003e\/\/ Can be any digital input pin\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eledPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e13\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e       \u003cspan\u003e\/\/ Pin that on-board LED is connected to\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensorVal\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ variable to store the value coming from the sensor\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eledPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ LED pin as output\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/Sensor pin as input\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/=============================================================================== \u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003esensorVal\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/read the value of the sensor \u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorVal\u003c\/span\u003e \u003cspan\u003e==\u003c\/span\u003e \u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e\/\/ turn on LED when sensor is blocked \u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eledPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n  \u003cspan\u003eelse\u003c\/span\u003e\n  \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eledPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eBasic operation verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eThis module is similar to or the same as the KY-010.\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"840\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Logic high\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026gt; 4.8V (when used with 5V)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLogic Low\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 0.2V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eDimensions\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e19 x 16mm  (0.75 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681308074219,"sku":"","price":2.12,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Light-Block-Sensor-Module-1.jpg?v=1723006066"},{"product_id":"linear-hall-effect-sensor-module","title":"Linear Hall Effect Sensor Module","description":"\u003cp\u003e\u003cspan\u003eDetects N\/S poles and relative strength of a magnetic field.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Linear Hall Effect Sensor Module detects both North and South poles and relative strength of a magnetic field and provides both analog and digital outputs.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eLinear Hall Effect Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF LINEAR HALL EFFECT MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUses 49E analog Hall Effect sensor\u003c\/li\u003e\n\u003cli\u003eCan differentiate between North and South pole of the magnet\u003c\/li\u003e\n\u003cli\u003eDetects the relative strength of the magnetic field\u003c\/li\u003e\n\u003cli\u003eProvides analog output representative of relative magnetic strength\u003c\/li\u003e\n\u003cli\u003eProvides digital output when magnetic strength exceeds the adjustable set-point\u003c\/li\u003e\n\u003cli\u003e3.3 or 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis module incorporates an analog Hall Effect sensor.  Hall Effect sensors detect the presence of a magnetic field and are commonly used for measuring the RPM of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates.  They can even be used to detect electrical current flow through conductors in some cases.\u003c\/p\u003e\n\u003ch3\u003eModule Operation\u003c\/h3\u003e\n\u003cp data-wp-editing=\"1\"\u003eThe analog output sits at around 50% Vcc with no input, but this varies with the setting of the sensitivity adjustment pot.  Any magnetic field picked up by the sensor causes this value to increase or decrease depending on whether the south or north pole of the magnet is coming near.  The south pole of the magnet will cause the analog output to linearly ramp towards\u003cimg alt=\"\" src=\"https:\/\/cdn.shopifycdn.net\/s\/files\/1\/0677\/1005\/8731\/files\/Linear-Hall-Effect-Sensor-Module-Schematic.jpg?v=1722229299\"\u003e\u003cspan\u003e \u003c\/span\u003eVcc to a maximum of about 4.2V (if Vcc is 5V).  If the north pole is presented, the voltage will linearly ramp towards ground to a minimum of 0.86V.  The amount of the voltage change will depend on the strength of the magnetic field.\u003c\/p\u003e\n\u003cp\u003eThe digital output which is active HIGH, is the result of a LM393 voltage comparator IC comparing the amplitude of the sensor to the level set by the on-board potentiometer.  Turning the pot CW increases the sensitivity.  A LED that is turned on when the output goes active HIGH.  If the pot is turned CCW (less sensitive), the LED will eventually always be off and if it is turned CW (more sensitive) it will come on as the magnet comes near.\u003c\/p\u003e\n\u003cp\u003eThe board also has a red LED which lights whenever power is applied.\u003c\/p\u003e\n\u003cp\u003eTo use this sensor with a microcontroller,  if the strength of the field is to be measured, the analog output should be hooked up to an analog input.  The output will read 1\/2 Vcc with no magnetic field present.  With a magnetic field, the voltage will change linearly at a rate of 2.5mV \/ G.   Gauss (G) is the unit of measure for magnetism.  If a basic GO \/ NO GO indication of a magnetic field is desired, the digital output can be connected to a digital input on the microcontroller.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 4-pin header on the module for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND \/ G\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e=  Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eA0 =\u003c\/strong\u003e Analog output, connects to analog input on uC\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eD0\u003c\/strong\u003e = Digital output, connects to digital input on uC\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is an interesting module that can be used to experiment with a number of industrial type applications involving Hall Effect sensors.\u003c\/p\u003e\n\u003cp\u003eThe analog version of the Hall Effect sensor as used in this module is a little trickier to use than the digital version, but it can provide information that the digital sensors cannot provide such as which pole of the magnet is being presented as well as the relative strength of the magnetic field.  Since this module also has a digital output, it also functions similar to a digital Hall Effect sensor, but with an adjustable trigger point.\u003c\/p\u003e\n\u003cp\u003eThe program below monitors the analog output of the module using pin A0, but this can be any available analog pin.  It then reports the raw analog input value as well as the calculated Gauss value.\u003c\/p\u003e\n\u003ch3\u003eLinear Hall Effect Sensor Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eAnalog Hall Effect module test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code for reading the analog output of the hall effect module. \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eAnalogPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e1.96\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Sensor outputs 2.5mV \/ Gauss.  \u003c\/span\u003e\n                                    \u003cspan\u003e\/\/ ADC step is about 4.89mV \/ Step\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e530.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Adjust as needed to get zero output with no magnetic field present.\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e         \u003cspan\u003e\/\/ Set comm speed for debug window messages\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eAnalogPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e-\u003c\/span\u003e \u003cspan\u003ezeroLevel\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Output normalized to '0' with no field present\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading Raw: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003erawValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e\/\/ Reading positive relative to the South Pole, the North Pole negative\u003c\/span\u003e\n  \u003cspan\u003egaussValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003eGAUSS_PER_STEP\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Reading in Gauss: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003egaussValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e3000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eModule similar or same as KY-024\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"834\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 3.3 – 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Analog Output (no magnetic field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 1\/2 Vcc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Analog Output (Max South pole field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 4.2V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eAnalog Output (Max North pole field)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e0.86V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eSensitivity\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e2.5mV \/ G\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e36mm x 15mm  (1.4x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681315086571,"sku":"","price":3.22,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Linear-Hall-Effect-Sensor-Module-1.jpg?v=1723006056"},{"product_id":"metal-detector-module","title":"Metal Detector Module","description":"\u003cp\u003e\u003cspan\u003eVery basic metal detector for experimenting\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Metal Detector Module is a very basic but complete metal detector.  Just add power and start finding treasure under your couch seat cushions.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eMetal Detector Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF METAL DETECTOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eBuilt-in PCB trace detector coil\u003c\/li\u003e\n\u003cli\u003eBuzzer detection alert\u003c\/li\u003e\n\u003cli\u003eSensitivity adjustment\u003c\/li\u003e\n\u003cli\u003e3 to 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eVirtually all metal detectors work on the same basic principal of using an oscillator that incorporates an inductor(s) as part of an oscillation circuit.  That inductor is composed of wire windings in the sensor head (or in this case, it is PCB traces in a spiral pattern).\u003c\/p\u003e\n\u003cp\u003eAny metal that comes into proximity with this inductor causes its electrical characteristics to change.  That change affects the oscillator frequency or amplitude and that is what alerts us via a buzzer or some other user interface as to the presence of a metallic object.\u003c\/p\u003e\n\u003cp\u003eThis module implements a Colpitts oscillator using Q1, some of the capacitors and resistors and the 2 inductors (there is one on top of the board and one on bottom of board).  The oscillator runs at around 300kHz.  When metal comes near, the output transistors Q2 and then Q3 are biased on which results in the buzzer sounding.\u003c\/p\u003e\n\u003cp\u003e\u003cimg decoding=\"async\" class=\"wp-image-5418 size-full aligncenter entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2.jpg\" alt=\"Metal Detector Schematic\" width=\"800\" height=\"480\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2.jpg 800w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-400x240.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-300x180.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-768x461.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-280x168.jpg 280w\" data-lazy-sizes=\"(max-width: 800px) 100vw, 800px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2.jpg 800w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-400x240.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-300x180.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-768x461.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/02\/Metal-Detector-Schematic-2-280x168.jpg 280w\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe module includes a potentiometer R3 that allows for adjustment of the sensitivity.  If the sensitivity is set too high, the buzzer will sound continuously.  Turning the pot CCW just until the buzzer stops sounding when no metal is present will set the detector for maximum sensitivity.\u003c\/p\u003e\n\u003cp\u003eThere are 4 screw holes that can be used for mounting a handle of some type if desired.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere are two versions of this module.  The current shipping revision is built with mostly SMD components and includes a JST style 2-pin connector for making power connections.  The input power can be 3-5V.\u003c\/p\u003e\n\u003cp\u003eThe older version is all thru-hole.  To power that version of the module, connect 3 to 5V to the ‘\u003cstrong\u003eV+\u003c\/strong\u003e‘ break-out point and Ground to the ‘\u003cstrong\u003eV-\u003c\/strong\u003e‘ break-out point.  This will typically require soldering wires to these two points.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eMetal detectors can be a very interesting area for experimentation with a lot of opportunity for adding functionality such as microprocessor control, LCD displays, larger more powerful inductor coils and more.\u003c\/p\u003e\n\u003cp\u003eThis module is basic but illustrates the general concepts of a metal detector and it is possible to hot rod it if you are so inclined.\u003c\/p\u003e\n\u003cp\u003eIn its current state, it can detect up to about 2″ away depending on the size of the target.  The weakest link on this module is the PCB traces that are used for the inductor because the PCB traces do not concentrate the magnetic flux like actual wire windings would and that limits the sensitivity.\u003c\/p\u003e\n\u003cp\u003eOne suggestion for modifying this basic circuit can be found at the following link if you scroll down near the bottom where the title is “\u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.talkingelectronics.com\/projects\/200TrCcts\/MetalDetectors\/MetalDetectors-1.html\" rel=\"noopener noreferrer\" target=\"_blank\"\u003eMetal Detector With Printed Coil\u003c\/a\u003e\u003c\/strong\u003e“.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"854\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e        V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 3.0 to 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e        I\u003csub\u003e(typ)\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eWithout buzzer sounding\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e5mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e        I\u003csub\u003e(typ)\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e With buzzer sounding\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 28mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e        Sensitivity\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e    Detection Distance\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 5cm (2″) Typical\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e65 x 60mm (2.5 x 2.4″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681319575787,"sku":"","price":9.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Metal-Detector-Module-1.jpg?v=1723006045"},{"product_id":"mini-reed-switch-module-compact-magnetic-sensor-digital-arduino","title":"Mini Reed Switch Module — Compact Magnetic Sensor, Digital Output, Arduino Compatible","description":"\u003ch2\u003eMini Reed Switch Module — Compact Magnetic Sensor, Digital Output, Arduino Compatible\u003c\/h2\u003e\n\n\u003cp\u003eThis \u003cstrong\u003emini reed switch module\u003c\/strong\u003e is the compact version of the standard reed switch module — same magnetically-actuated non-contact detection in a smaller PCB footprint. When a magnet is brought within range, the reed switch closes and the module outputs a digital signal. The smaller size makes it ideal for space-constrained applications where the standard module is too large. Includes 3-pin header for direct Arduino connection.\u003c\/p\u003e\n\n\u003ch3\u003eModule Specifications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSensor Type:\u003c\/strong\u003e Reed switch (magnetically actuated)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutput:\u003c\/strong\u003e Digital (changes state when magnet is present)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOperating Voltage:\u003c\/strong\u003e 3.3V – 5V DC\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConnector:\u003c\/strong\u003e 3-pin male header (GND, VCC, Signal)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eForm Factor:\u003c\/strong\u003e Mini (smaller PCB than standard reed switch module)\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eMini vs Standard Reed Switch Module\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMini (this listing):\u003c\/strong\u003e Smaller PCB — for space-constrained enclosures and compact projects\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStandard:\u003c\/strong\u003e Larger PCB, may include LED indicator — for general-purpose use\u003c\/li\u003e\n  \u003cli\u003eBoth provide the same digital output and magnetic actuation principle\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompact door sensor:\u003c\/strong\u003e Detect open\/closed state in small enclosures\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWearable projects:\u003c\/strong\u003e Magnetic clasp detection in wearable electronics\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLiquid level:\u003c\/strong\u003e Float-mounted magnet triggers switch at set level\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRotation counting:\u003c\/strong\u003e Count shaft rotations with magnet attached\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003ePackage Contents\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e1 × Mini reed switch module with 3-pin header\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eCompact non-contact magnetic detection — mini reed switch module with digital output for space-constrained door sensing, liquid level, and proximity detection projects.\u003c\/p\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681325048043,"sku":"","price":7.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Mini-Reed-Switch-Module.jpg?v=1723006040"},{"product_id":"optical-endstop-module","title":"Optical Endstop Module","description":"\u003cp\u003e\u003cspan\u003eDesigned for use as an endstop for 3D printers but it can be used for other IR beam interrupter purposes as well.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThis infrared sensor is designed for use as an endstop for 3D printers but it can be used for other IR beam interrupter purposes as well.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eOptical Endstop Module\u003c\/li\u003e\n\u003cli\u003e100 cm cable\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF OPTICAL ENDSTOP MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDetects presence of an object that passes through the uprights.\u003c\/li\u003e\n\u003cli\u003eUse as travel limit switch on 3D printers or other beam break detect applications\u003c\/li\u003e\n\u003cli\u003e100 cm long 24AWG cable\u003c\/li\u003e\n\u003cli\u003eGreen LED Lights when beam is broken\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V logic compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe module was designed to detect travel limits for 3D printers, but they will work for many beam-break applications such for a security system or counting revolutions of a spoked wheel that passes through the uprights.\u003c\/p\u003e\n\u003cp\u003eThis module has an IR transmitter and receiver pair that face each other across a U-shaped housing.  An object moving through the uprights breaks the IR beam.\u003c\/p\u003e\n\u003cp\u003eThe output is normally held LOW.  When the beam is broken, the output goes HIGH and a green LED on the module illuminates.\u003c\/p\u003e\n\u003cp\u003eThe module uses a 3-pin 2.54mm JST style connector.  The other end of the cable terminates in the same kind of connector and is compatible with a standard 2.54mm male headers..\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eNote that the cable is not color coded.  Red does not necessarily go to Vcc, so be sure to follow the pin-out of the connector labeled on the back of the board as shown below\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1×3 Connector\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eVCC\u003c\/b\u003e= 3.3 or 5V to match the MCU.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eGND \u003c\/b\u003e= Ground which should be common with the MCU.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eSIG \u003c\/b\u003e= Signal output of the module.  This pin is normally LOW.  When the IR beam is broken, the output goes HIGH (Vcc).\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe module has 2 large mounting holes.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eBuild quality is good on these modules but there are a couple of things to note to make sure it is right for your application.\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003eThe sensor output is analog rather than having a comparator digital output.  This means that if an object is moving slowly through the uprights, while the beam is partially blocked it can result in an output voltage that is in-between the valid logic states of HIGH or LOW for a period of time.\u003c\/li\u003e\n\u003cli\u003eSimilarly if the object moving through the uprights is semi-transparent to IR, the output will go to a level that is somewhere in-between ground and Vcc.\u003c\/li\u003e\n\u003cli\u003eThe cable exits on the same side as the sensor.  This can be good or bad depending on your application and how the sensor is to be mounted.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected per incoming shipment\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"955\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 – 5VDC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Logic high\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to Vcc via transistor\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLogic Low\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to Ground\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eDimensions\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e35mm x 11.5mm  (1.4 x 0.45″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eHeight U-Channel\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e10.5mm  (0.41″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eH x W (Inside U-Channel)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e8 x 5mm  (0.32 x 0.2″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eDepth of intrusion into U-Channel to interrupt beam\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.5mm  (0.14″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eCable Length\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e100cm  (39″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eWire Gauge\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e24AWG\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681328324843,"sku":"","price":4.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Optical-Endstop-Module-with-Cable-1.jpg?v=1723006028"},{"product_id":"optical-tracking-sensor-module","title":"Optical Tracking Sensor Module","description":"\u003cp\u003e\u003cspan\u003eUses infrared to detect a reflective line on the floor.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Optical Tracking Sensor Module is a line tracking module that uses infrared to detect a reflective line on the floor.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eOptical Tracking Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF OPTICAL TRACKING SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eIR transmitter\/receiver pair\u003c\/li\u003e\n\u003cli\u003eSensitivity adjustment\u003c\/li\u003e\n\u003cli\u003eApproximately 1″ detection range\u003c\/li\u003e\n\u003cli\u003eDetection LED\u003c\/li\u003e\n\u003cli\u003e3.0 to 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis Optical Tracking Sensor, sometimes called a Line Tracking Sensor, uses an infrared (IR) emitting LED and IR Receiver pair to detect a reflective surface in front of the sensor.  These sensors are typically used in robotics to track a reflective line on the floor.  It can also be used to detect any reflective surface that comes close to it.\u003c\/p\u003e\n\u003cp\u003eThe output of the module is normally HIGH.  When a reflective surface (typically white) is brought near to the sensors, the output goes LOW and the on-board LED illuminates.  When a non-reflective surface (typically black or dark colored) is brought near, the output stays HIGH.  Maximum detection distance is generally around 1″.  There is an on-board LM393 voltage comparator and a 10K potentiometer that allows you to fiddle with the sensitivity of the detection.\u003c\/p\u003e\n\u003cp\u003eThe maximum range that it can detect a reflective surface depends on the operating voltage.  When operated at 5V, the range is about 1″.   At lower operating voltages, the maximum detection range decreases.  At 3.3V, the range decreases to about 0.6″.\u003c\/p\u003e\n\u003cp\u003eTo track a line, 2 or more sensors are generally used so that it can be more easily determined which side of the line the robot is on since one sensor will just tell you if you are on the line or not, but not how to correct course.  Another option to consider is our 3-sensor line tracking module available below.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly for making connections.  There are a couple of different labeling schemes used on this header.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eGND \/ G \u003c\/b\u003e= Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eVcc \/ V+ \u003c\/b\u003e=3.0 to 5V (5V gives greatest range)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eOUT \/ S =\u003c\/strong\u003e Signal output, connects to digital input pin on uC.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a commonly used module for basic robotic line tracking experiments and is a good way to get started with basic robotic movement experiments as it is relatively straightforward to read the sensors and modify direction based on the feedback received.  These modules can sometimes find use in other applications such as keeping the detector stationary and detecting when a reflective object passes in front of the sensor.\u003c\/p\u003e\n\u003cp\u003eThe board has two large holes that can be used for mounting if desired.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eBasic detection output verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"851\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.0 to 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt;15mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Distance\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e1 – 25mm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e40 x 11mm (1.6 x 0.43″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681331175659,"sku":"","price":3.12,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Optical-Tracking-Module-1.jpg?v=1723006023"},{"product_id":"reed-switch-module-magnetic-contact-sensor-digital-arduino","title":"Reed Switch Module — Magnetic Contact Sensor, Digital Output, Arduino Compatible","description":"\u003ch2\u003eReed Switch Module — Magnetic Contact Sensor, Digital Output, Arduino Compatible\u003c\/h2\u003e\n\n\u003cp\u003eThis \u003cstrong\u003ereed switch module\u003c\/strong\u003e uses a magnetically-actuated reed switch to detect the presence of a magnet without any physical contact. When a magnet is brought within range, the reed switch closes and the module outputs a digital signal. Unlike mechanical switches, reed switches have no moving parts exposed to the environment, making them ideal for sealed enclosures, door\/window detection, and liquid level sensing. The module includes a PCB with pull-up resistor and 3-pin header for direct Arduino connection.\u003c\/p\u003e\n\n\u003ch3\u003eModule Specifications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSensor Type:\u003c\/strong\u003e Reed switch (magnetically actuated)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutput:\u003c\/strong\u003e Digital (HIGH when no magnet, LOW when magnet present)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOperating Voltage:\u003c\/strong\u003e 3.3V – 5V DC\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConnector:\u003c\/strong\u003e 3-pin male header (GND, VCC, Signal)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eActuation:\u003c\/strong\u003e Magnetic field (no physical contact required)\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eReed Switch vs Hall Effect Sensor\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReed switch:\u003c\/strong\u003e Mechanical contacts, simple digital output, lower cost — for basic presence detection\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHall effect sensor:\u003c\/strong\u003e Solid-state, can detect polarity and field strength — for precise position and speed sensing\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDoor \/ window sensor:\u003c\/strong\u003e Detect open\/closed state of doors and windows for security systems\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLiquid level detection:\u003c\/strong\u003e Float-mounted magnet triggers reed switch at set liquid level\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProximity detection:\u003c\/strong\u003e Detect presence of magnetic objects without contact\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRotation counting:\u003c\/strong\u003e Count rotations of a shaft with a magnet attached\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTamper detection:\u003c\/strong\u003e Detect opening of enclosures in security applications\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003ePackage Contents\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e1 × Reed switch module with 3-pin header\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eNon-contact magnetic detection — reed switch module with digital output for door\/window sensing, liquid level detection, and proximity sensing in Arduino projects.\u003c\/p\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681334223083,"sku":"","price":7.12,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Reed-Switch-Module-2.jpg?v=1723006018"},{"product_id":"tcrt5000-ir-reflective-optical-sensor-2-pack","title":"TCRT5000 IR Reflective Optical Sensor (2-Pack)","description":"\u003cp\u003e\u003cspan\u003eReflective sensor that detects a close reflective surface by bouncing IR light off it.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe TCRT5000 is a reflective sensor that detects a close reflective surface by bouncing IR light off it.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eQty 2 – TCRT5000L IR Reflective Optical Sensor\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF TCRT5000 SENSOR:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eIR transmitter\/receiver pair\u003c\/li\u003e\n\u003cli\u003eApproximately 1″ detection range\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThese sensors are used in many of the Arduino modules sold for obstacle detection and avoidance or for line following robots.  They can be used for applications where it is desirable to detect an object passing in front of the sensor at close range.\u003c\/p\u003e\n\u003cp\u003eThe sensor incorporates both an IR emitter LED which is blue in color and an IR phototransistor receiver that looks black in the same package. The emitter operates in the infrared range of 950nm and the receiver has a daylight blocking filter to help minimize interference from visible light.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eTo use the sensor in a minimum configuration requires two current limiting resistors, one for the IR emitter and one for the IR receiver.\u003cimg decoding=\"async\" class=\"alignright size-full wp-image-8157 entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic.jpg\" alt=\"TCRT5000 Refective IR Sensor Schematic\" width=\"310\" height=\"267\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic.jpg 310w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic-300x258.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic-217x187.jpg 217w\" data-lazy-sizes=\"(max-width: 310px) 100vw, 310px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 310px) 100vw, 310px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic.jpg 310w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic-300x258.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Refective-IR-Sensor-Schematic-217x187.jpg 217w\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe maximum constant current through the IR emitter LED is 60mA and it has a forward voltage drop of 1.2V to 1.4V across it. In the example here, a 150 ohm resistor is used to limit current to 25mA through the emitter with an operating voltage of 5V.\u003c\/p\u003e\n\u003cp\u003eThe maximum current through the receiver phototransistor is 100mA. We are using a 4.7K resistor to limit the current to about 1mA since we are just looking for a logic output.\u003c\/p\u003e\n\u003cp\u003eWith the sensor wired up as shown here, the output will normally sit near ground due to the pull-down resistor. When a reflective surface is brought near to the sensor in order to reflect the IR light back toward the phototransistor, it will start to conduct and the voltage output will begin to rise towards 5V.\u003c\/p\u003e\n\u003cdiv id=\"attachment_8158\" class=\"wp-caption alignright\"\u003e\n\u003ca href=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic.jpg\"\u003e\u003cimg decoding=\"async\" aria-describedby=\"caption-attachment-8158\" class=\"wp-image-8158 size-medium entered lazyloading\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic.jpg 800w\" data-lazy-sizes=\"(max-width: 300px) 100vw, 300px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-300x225.jpg\" data-ll-status=\"loading\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/TCRT5000-Typical-Circuit-Schematic.jpg 800w\"\u003e\u003c\/a\u003e\n\u003cp id=\"caption-attachment-8158\" class=\"wp-caption-text\"\u003eTypical circuit with an adjustable gain control\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe output can be treated as an analog output and monitored with an analog input on the MCU. In this case, the output voltage gives some indication of the distance of the object from the sensor. Depending on the reflectivity of the surface, initial detection can occur at up to about 6” with a fairly reflective surface with the signal rising to near 5V (full detection) at around 1”.\u003c\/p\u003e\n\u003cp\u003eWhen the output is treated as a digital signal, the detection range is generally kept under 1”.\u003c\/p\u003e\n\u003cp\u003eThe housing has two snap in ears for mounting in a circuit board.  These can be easily cut-off if desired for use in breadboards.\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"851\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eTypical\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLED Emitter\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e60mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003ePhoto-transistor Collector\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e100mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Distance\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e1 – 25mm (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W x H\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e10.2 x 5.8 x 7mm (0.40 x 0.23 x 0.28″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLead length\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e15mm (0.59″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"http:\/\/www.vishay.com\/docs\/83760\/tcrt5000.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003eTCRT5000\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681364795627,"sku":"","price":1.22,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/TCRT5000-Reflective-IR-Sensor-2-Pack.jpg?v=1723005980"},{"product_id":"light-sensitive-ldr-relay-module-5v-auto-night-light-10a-spdt","title":"Light Sensitive LDR Relay Module 5V — Auto Night Light Controller, 10A SPDT, Adjustable Threshold","description":"\u003ch2\u003eLight Sensitive LDR Relay Module — 5V, 10A SPDT, Automatic Light-Level Switching\u003c\/h2\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eLight Sensitive LDR Relay Module\u003c\/strong\u003e is a self-contained automatic switching module that energizes or de-energizes a 10A relay based on ambient light level — no microcontroller required. Connect 5V power, wire your load to the relay terminals, adjust the onboard potentiometer to set the brightness threshold, and the module automatically switches your load ON or OFF as light levels change. The included \u003cstrong\u003eLDR (Light Dependent Resistor) sensor on a 10″ (25cm) lead\u003c\/strong\u003e allows remote positioning of the sensor away from the module.\u003c\/p\u003e\n\n\u003cp\u003eTypical use: automatically turn on a security light, garden light, or night light when ambient brightness drops below a preset level at dusk, and turn it off at dawn — completely autonomously, without any programming or microcontroller.\u003c\/p\u003e\n\n\u003ch3\u003eKey Features\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eFully autonomous operation\u003c\/strong\u003e — no microcontroller or programming required\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eAdjustable light threshold\u003c\/strong\u003e — onboard potentiometer sets the brightness trip-point (CW = higher threshold)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e10A SPDT relay contacts\u003c\/strong\u003e — switches up to 250VAC @ 10A or 15VDC @ 10A\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eBoth NO and NC contacts\u003c\/strong\u003e — switch load ON or OFF when light drops below threshold\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eRemote LDR sensor\u003c\/strong\u003e — 10″ (25cm) lead for flexible sensor positioning; extendable by splicing\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eBlue LED indicator\u003c\/strong\u003e — illuminates when relay is energized\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eRed power LED\u003c\/strong\u003e — confirms 5V supply is connected\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eBuilt-in flyback diode\u003c\/strong\u003e — protects against relay coil back-EMF\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eReverse polarity protection\u003c\/strong\u003e — diode on 5V power input\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eLM393 comparator IC\u003c\/strong\u003e — stable, hysteresis-free threshold detection\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical Specifications\u003c\/h3\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSupply Voltage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSupply Current\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e~5mA (relay off) \/ ~55mA (relay energized)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eRelay Contact Rating (AC)\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e115VAC @ 10A \/ 250VAC @ 10A\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eRelay Contact Rating (DC)\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e15V DC @ 10A (recommended max)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eRelay Type\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eSPDT (NO + NC + COM)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eThreshold Adjustment\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eOnboard potentiometer (CW = higher threshold)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSensor\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eLDR on 10″ (25cm) lead\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eComparator IC\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eLM393\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003ePCB Dimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e53 × 31 × 20mm (2.09 × 1.2 × 0.79″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003eWiring Guide\u003c\/h3\u003e\n\u003cp\u003e\u003cstrong\u003ePower (2-pin screw terminal):\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVcc\u003c\/strong\u003e → 5V DC supply\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e → Ground\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eLoad (3-pin screw terminal):\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eNO (top)\u003c\/strong\u003e → Load connects here to switch ON when relay energizes (light drops below threshold)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCOM (center)\u003c\/strong\u003e → AC or DC power source for the load\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eNC (bottom)\u003c\/strong\u003e → Load connects here to switch ON when relay de-energizes (light above threshold)\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTheory of Operation\u003c\/h3\u003e\n\u003cp\u003eThe LDR sensor resistance increases as ambient light decreases. An \u003cstrong\u003eLM393 voltage comparator\u003c\/strong\u003e monitors the LDR voltage divider output against the potentiometer-set reference voltage. When brightness drops below the threshold, the comparator output switches, energizing the relay (blue LED ON). When brightness rises above the threshold, the relay de-energizes (blue LED OFF). The potentiometer adjusts the reference voltage — turning CW raises the threshold, making the module trigger at higher light levels.\u003c\/p\u003e\n\n\u003ch3\u003eImportant Notes\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eDC voltage limit:\u003c\/strong\u003e Relay contacts can become sticky above ~15V DC. Limit DC switching to 15V or below.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eAC performance:\u003c\/strong\u003e Tested successfully switching a 1500W \/ 12.5A heater load without issues.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eThreshold calibration:\u003c\/strong\u003e Point LDR at light source, adjust pot until blue LED just turns off. Shielding LDR should then trigger the relay.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eAC safety:\u003c\/strong\u003e When switching mains AC voltage, ensure all connections are properly insulated and inaccessible.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTypical Applications\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eAutomatic dusk-to-dawn security light and garden light controller\u003c\/li\u003e\n\u003cli\u003eNight light and corridor light automation\u003c\/li\u003e\n\u003cli\u003eGreenhouse supplemental lighting controller (lights on when dark)\u003c\/li\u003e\n\u003cli\u003ePhotography darkroom safelight automation\u003c\/li\u003e\n\u003cli\u003eAquarium lighting automatic day\/night cycle\u003c\/li\u003e\n\u003cli\u003eIndustrial machine light-level interlock\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003ePackage Contents\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e1 × Light Sensitive LDR Relay Module 5V\u003c\/li\u003e\n\u003cli\u003e1 × LDR sensor on 10″ (25cm) lead\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681408573675,"sku":"","price":9.82,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Light-Sensitive-LDR-Relay-Module-5V.jpg?v=1723005960"},{"product_id":"light-sensitive-relay-module-5v","title":"Light Sensitive Relay Module 5V","description":"\u003cp\u003e\u003cspan\u003eAutomatically control a load based on ambient light detection.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Light Sensitive Relay Module 5V can automatically control a load such as a night security light based on the ambient light level.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eLight Sensitive Relay Module 5V\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF LIGHT SENSITIVE RELAY  MODULE 5V:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eBuilt-in photodiode sensor automatically controls the relay based on light intensity.\u003c\/li\u003e\n\u003cli\u003eDetects both visible and infrared light\u003c\/li\u003e\n\u003cli\u003eAdjustable light level set-point\u003c\/li\u003e\n\u003cli\u003eControls loads of 115\/230VAC @ 10A\u003c\/li\u003e\n\u003cli\u003eControls loads of 0 – 15VDC @ 10A\u003c\/li\u003e\n\u003cli\u003eLED indicator when relay is energized\u003c\/li\u003e\n\u003cli\u003e5V power operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis is a self-contained switching module that energizes \/ de-energizes a relay based on the the detection of light, both visible and infrared.   Just add 5V power and hook up the load you want to control then adjust the potentiometer to set the brightness level at which you want the relay to switch between ON \/ OFF.\u003c\/p\u003e\n\u003cp\u003eThis type of module can be used for applications such as to automatically turning a light on when the ambient brightness goes below a preset level as might be the case for a outside security light or night light.  It can also detect a flame under some conditions.\u003c\/p\u003e\n\u003cp\u003eThe diode is sensitive primarily to light that strikes it from the rounded end rather than the side which gives the sensor some directionality.\u003c\/p\u003e\n\u003ch3\u003eTheory of Operation\u003c\/h3\u003e\n\u003cp\u003eThe light sensor on the module is a light detecting photodiode .\u003c\/p\u003e\n\u003cp\u003eThe brightness level trip-point for triggering the relay can be adjusted using the potentiometer on the module.  Turning the pot CW increases the brightness trip-point.\u003c\/p\u003e\n\u003cp\u003eWhen the brightness goes over the trip-point value, an LM393 voltage comparator IC energizes the relay and it switches ON.  A green LED is illuminated when the relay is energized.\u003c\/p\u003e\n\u003cp\u003eWhen the brightness drops below the preset value, the relay switches back OFF.\u003c\/p\u003e\n\u003cp\u003eThe relay has both NO (Normally Open) and NC (Normally Closed) contacts so the module can either be used to energize a load when brightness goes up past the trip-point value or when it goes down past that level.\u003c\/p\u003e\n\u003cp\u003eA flyback diode is included on the module in parallel to the relay coil to safely shunt current when the relay coil is de-energized.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003ch4\u003ePOWER\u003c\/h4\u003e\n\u003cp\u003eThe module requires 5V power and ground to operate.  There is a red LED that is lit when power is applied to the module.   When the relay is energized, the module draws about 80mA from the Vcc pin.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 2 Header (Power Connections)\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVcc\u003c\/strong\u003e = Connect to 5V power supply\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e = Connect to ground of the 5V power supply\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch4\u003eLOAD\u003c\/h4\u003e\n\u003cp\u003eThe output of the relay is rated to switch up to 30VDC at 10A or up to 250VAC at up to 10A (\u003cstrong\u003eSee our notes below\u003c\/strong\u003e).\u003c\/p\u003e\n\u003cp\u003eThe output is SPDT type with both a\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eNO\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e(Normally Open) terminal and a\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eNC\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e(Normally Closed) terminal relative to the\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eCOM\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eterminal.  When the relay is de-energized (green LED OFF) the NO-COM is open and the NC-COM is shorted.  When the relay is energized (green LED ON) the NO – COM is shorted and the NC-COM is open.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Screw Terminal (Load Connections)\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eTop = Normally Open relay contact – Load is connected to this terminal if it should switch ON when relay is energized.\u003c\/li\u003e\n\u003cli\u003eCenter = Common connection – Connects to AC or DC power source for load that is being controlled.\u003c\/li\u003e\n\u003cli\u003eBottom = Normally Closed relay contact – Load is connected to this terminal if it should switch ON when relay is de-energized.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese are nice inexpensive modules that will work for a number of applications and allow you to control devices based on sensing presence or absence of light without the need to have an MCU involved.  Just hook up 5V power and your load and you are all set.\u003c\/p\u003e\n\u003cp\u003eThe sensing works best when detecting a brighter light source and can be set to be fairly sensitive and detect shadows or other changes in the light intensity.  Under fairly low light level changes, the sensor may not detect a difference as easily.  Some amount of empirical testing and adjustment is usually need to find the right adjustment point.\u003c\/p\u003e\n\u003cp\u003eWe do find the DC rating of the relay to be too aggressive. With DC voltages above about 15V, the contacts can become a little sticky. We recommend using it to switch DC voltages of no more than 15V.\u003c\/p\u003e\n\u003cp\u003eWith AC, the relays performed very well in our testing.  To test the upper limit we used it to switch a 1500W heater that draws about 12.5A and the relay handled it without any problems.\u003c\/p\u003e\n\u003cp\u003eTo test the device, connect it to 5V.  While pointing the photodiode towards a light source, adjust the pot so that the green LED just comes on.  Shielding the photodiode from the light should then cause the green LED to go off and an audible click can be heard from the relay as it switches.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"760\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eVcc\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eTypical\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eContact Rating\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e DC\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e15V @ 10A\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e 115VAC\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e10A\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e 250VAC\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 10A\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W x H (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e50 x 27 x 18mm (2 x 1.1 x 0 .71″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681415454955,"sku":"","price":8.12,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Photosensitive-Relay-Module-5V-1.jpg?v=1723005952"},{"product_id":"light-sensitive-ldr-relay-module-12v","title":"Light Sensitive LDR Relay Module 12V","description":"\u003cp\u003e\u003cspan\u003eAutomatically control a load based on the ambient light level.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe Light Sensitive LDR Relay Module 12V can automatically control a load such as a night security light based on the ambient light level.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eLight Sensitive LDR Relay Module 12V w\/ LDR sensor\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF LIGHT SENSITIVE LDR RELAY  MODULE 12V:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eAutomatically controls the relay based on light intensity\u003c\/li\u003e\n\u003cli\u003eIncluded LDR (Light Dependent Resistor) sensor on 10″ lead detects visible light\u003c\/li\u003e\n\u003cli\u003eAdjustable light level set-point\u003c\/li\u003e\n\u003cli\u003eControls loads of 115\/230VAC @ 10A\u003c\/li\u003e\n\u003cli\u003eControls loads of 0 – 15VDC @ 10A\u003c\/li\u003e\n\u003cli\u003eBoth NO (Normally Open) and NC (Normally Closed) contacts\u003c\/li\u003e\n\u003cli\u003eLED indicator when relay is energized\u003c\/li\u003e\n\u003cli\u003e12V power operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis is a self-contained switching module that energizes \/ de-energizes a relay based on the the detection of visible light.   Just add 12V power and hook up the load you want to control then adjust the potentiometer to set the brightness level at which you want the relay to switch between ON \/ OFF.\u003c\/p\u003e\n\u003cp\u003eThis type of module can be used for applications such as to automatically turning a light on when the ambient brightness goes below a preset level as might be the case for a outside security light or night light.  It can also detect a flame under some conditions.\u003c\/p\u003e\n\u003cp\u003eThe LDR sensor is attached to a 10″ lead for remote mounting.  The lead can be spliced to increase its length if desired.\u003c\/p\u003e\n\u003ch3\u003eTheory of Operation\u003c\/h3\u003e\n\u003cp\u003eThe light sensor on the module is a light sensitive resistor (LDR) .\u003c\/p\u003e\n\u003cp\u003eThe brightness level trip-point for triggering the relay can be adjusted using the potentiometer on the module.  Turning the pot\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eCW\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eincreases the brightness trip-point.\u003c\/p\u003e\n\u003cp\u003eWhen the brightness goes below the trip-point value, an LM393 voltage comparator IC energizes the relay and it switches\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eON\u003c\/strong\u003e.  A blue LED is illuminated when the relay is energized.\u003c\/p\u003e\n\u003cp\u003eWhen the brightness increases above the preset value, the relay switches back\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eOFF\u003c\/strong\u003e.\u003c\/p\u003e\n\u003cp\u003eThe relay has both NO (Normally Open) and NC (Normally Closed) contacts so the module can either be used to energize a load when brightness goes up past the trip-point value or when it goes down below that level.\u003c\/p\u003e\n\u003cp\u003eA flyback diode is included on the module in parallel to the relay coil to safely shunt current when the relay coil is de-energized.  The module also has a reverse polarity protection diode on the 12V power input.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003ch4\u003ePOWER\u003c\/h4\u003e\n\u003cp\u003eThe module requires 12V power and ground to operate.  There is a red LED that is lit when power is applied to the module.   When the relay is de-energized it draws approximately 10mA.  When energized, the module draws about 40mA from the Vcc pin.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 2 Screw Terminal (Power Connections)\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVcc\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Connect to 12V power supply\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Connect to ground of the 12V power supply\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch4\u003eLOAD\u003c\/h4\u003e\n\u003cp\u003eThe output of the relay is rated to switch up to 30VDC at 10A or up to 250VAC at up to 10A (\u003cstrong\u003eSee our notes below\u003c\/strong\u003e).\u003c\/p\u003e\n\u003cp\u003eThe output is SPDT type with both a\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eNO\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e(Normally Open) terminal and a\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eNC\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e(Normally Closed) terminal relative to the\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eCOM\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eterminal.  When the relay is de-energized (blue LED OFF) the NO-COM connection is open and the NC-COM connection is shorted.  When the relay is energized (blue LED ON) the NO – COM connection is shorted and the NC-COM connection is open.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Screw Terminal (Load Connections)\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eTop\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Normally Open relay contact – Load is connected to this terminal if it should switch ON when relay is energized.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCenter\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Common connection – Connects to AC or DC power source for load that is being controlled.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eBottom\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Normally Closed relay contact – Load is connected to this terminal if it should switch ON when relay is de-energized.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese are nice inexpensive modules that will work for many applications and allow you to control devices based on sensing light without the need to have an MCU involved.  Just hook up 12V power and your load and you are all set.\u003c\/p\u003e\n\u003cp\u003eThe sensing works over a fairly wide range of light intensities.  The potentiometer provides a relative rather than absolute setting, so setting the trip point will require some amount of trial and error.  Positioning of the light sensor will also have an affect on the setting.\u003c\/p\u003e\n\u003cp\u003eWe do find the DC rating of the relay to be too aggressive. With DC voltages above about 15V, the contacts can become a little sticky. We recommend using it to switch DC voltages of no more than 15V.\u003c\/p\u003e\n\u003cp\u003eWith AC, the relays performed well in our testing.  To test the upper limit we used it to switch a 1500W heater that draws about 12.5A and the relay handled it without any problems.\u003c\/p\u003e\n\u003cp\u003eTo test the device, connect it to 12V.  While pointing the LDR sensor towards a light source, adjust the pot so that the blue LED just goes off.  Shielding the LDR from the light should then cause the blue LED to turn on and an audible click heard from the relay as it switches.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eLDR sensor \/ relay operation verified\u003c\/li\u003e\n\u003cli\u003eRepackaged in high quality resealable ESD bag for safe storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"760\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eVcc\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e12V @ 40mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eContact Rating\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e DC\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e15V @ 10A (Max recommended)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e 115VAC\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e10A\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e 250VAC\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 10A\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W x H (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e53 x 31 x 20mm (2.09 x 1.2 x 0 .79″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681419124971,"sku":"","price":7.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Light-Sensitive-LDR-Relay-Module-12V.jpg?v=1723005941"},{"product_id":"801s-vibration-sensor-module","title":"801S Vibration Sensor Module","description":"\u003cp\u003e\u003cspan\u003eSensitive micro shock detecting sensor that outputs pulses when a shock or vibration is detected.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe 801S Vibration Sensor Module is a sensitive micro shock detecting sensor that operates by changing its resistance when a shock or vibration is detected.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e801S Vibration Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF 801S VIBRATION SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eOutputs a logic HIGH when module senses a vibration\u003c\/li\u003e\n\u003cli\u003eOn-board LED indicator\u003c\/li\u003e\n\u003cli\u003eA gold alloy plating ensures a long service life of sensor\u003c\/li\u003e\n\u003cli\u003e3.3V and 5V logic compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe sensor operates in any orientation and is extremely sensitive to any type of movement such as a light tap or vibration.  Unlike many sensors that use a mechanical switching element, this sensor uses resistive element that changes resistance with motion.\u003c\/p\u003e\n\u003cp\u003eThe module output is normally LOW and outputs a series of random HIGH pulses when a vibration or shock is detected.  The on-board LED is normally ON and goes OFF momentarily or appears to flicker when a shock is detected.  It can take up to 2 seconds for the output to return to a steady LOW after the shock \/ vibration is removed\u003c\/p\u003e\n\u003cp\u003eThere are two variants we have seen on this module with different resistor values.  The current draw is either about 2mA or about 10mA @ 5V.  Most of that is due to the on-board LED.\u003c\/p\u003e\n\u003cp\u003eThe module includes an LM393 comparator with a potentiometer to allow adjustment of basic sensitivity level.  Turning the potentiometer CCW increases sensitivity.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘-‘\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eDout\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Digital Output\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’ =\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eVcc 3V to 9V (3.3V or 5V typical)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis module can be used in a number of applications where an action needs to be taken if a physical shock or vibration is detected.\u003c\/p\u003e\n\u003cp\u003eThe scope capture below shows the typical output waveform when the surface the sensor is sitting on is lightly tapped.  In this case, the module is being operated at 5V.\u003c\/p\u003e\n\u003cp\u003e\u003cimg decoding=\"async\" class=\"size-full wp-image-8152 aligncenter entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output.jpg\" alt=\"801S Vibration Sensor Module - Example Output\" width=\"656\" height=\"215\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output.jpg 656w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output-300x98.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output-280x92.jpg 280w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output-400x131.jpg 400w\" data-lazy-sizes=\"(max-width: 656px) 100vw, 656px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 656px) 100vw, 656px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output.jpg 656w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output-300x98.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output-280x92.jpg 280w, https:\/\/protosupplies.com\/wp-content\/uploads\/2019\/10\/801S-Vibration-Sensor-Module-Example-Output-400x131.jpg 400w\"\u003e\u003c\/p\u003e\n\u003cp\u003eWhen tapped, the output will transition from LOW to HIGH multiple times as shown in the scope capture.  If monitoring the output of the sensor with an MCU input, it may need to be debounced in the software in the same fashion as a typical mechanical switch would be by ignoring transitions for a period of time after the first LOW to HIGH transition is detected.\u003c\/p\u003e\n\u003cp\u003eThe datasheet is pretty terse and specifies 9V operation, but we have tested the module from 3V to 9V and it seems to work fine over that range.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTECHNICAL SPECIFICATIONS\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"840\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.0 – 9V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 2mA @ 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Logic high\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled toward Vcc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLogic Low\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 0.2V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e35 x 11.5mm  (1.4 x 0.45″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eSencera\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003cspan\u003e\u003cstrong\u003e\u003ca href=\"https:\/\/www.tme.eu\/Document\/f057bde5b9f7ca0c86fbad8e5c5163e5\/SENS-801.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e801S\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45681616421099,"sku":"","price":9.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/801S-Vibration-Sensor-Module.jpg?v=1723005328"},{"product_id":"alcohol-gas-sensor-mq-3-module","title":"Alcohol Gas Sensor MQ-3 Module","description":"\u003ch2\u003e\u003cspan\u003eModule detects the presence and amount of alcohol \/ ethanol present in the air.\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Alcohol Gas Sensor Module detects the presence and amount of alcohol \/ ethanol present in the air.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eAlcohol Gas Sensor MQ-3 Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF ALCOHOL GAS SENSOR MQ-3 MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSensor type used in breathalyzer applications or detecting alcohol spills\u003c\/li\u003e\n\u003cli\u003eAnalog sensor output\u003c\/li\u003e\n\u003cli\u003eDigital sensor output with user adjustable sensitivity and LED indicator\u003c\/li\u003e\n\u003cli\u003e5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe module includes the sensor which provides a direct analog output.  In addition, the module has a comparator IC and adjustment potentiometer to provide a digital output with an adjustable set point, power LED, digital output active LED and a header for easy hookup.\u003c\/p\u003e\n\u003cp\u003eThese modules can be used to detect the presence and amount of alcohol present in the air.  This can be used to create an alarm for monitoring  the presence of alcohol, such as from a spill, or more typically it can be used to try to quantify the amount of alcohol present in a person’s breath aka create a breathalyzer like the police use.\u003c\/p\u003e\n\u003ch3\u003eHeating Element\u003c\/h3\u003e\n\u003cp\u003eThe sensor contains a small heater, so the power draw is about 130mA.  The sensor will get warm to the touch after it has been operating for awhile.  The module can be powered off a 5V power pin on the MCU, but it draws too much power to try to power it off a digital pin.  For accurate measurement, the sensor needs to be fully warmed up.  The sample code below has a 1 minute warm-up, but for maximum accuracy the warm-up time before use can be extended.\u003c\/p\u003e\n\u003ch3\u003eSensing Element\u003c\/h3\u003e\n\u003cp\u003eThe sensor uses SnO2 (tin dioxide) for the sensing element which is heated and changes resistance when exposed to alcohol in the air.  A voltage divider is used to provide an analog output voltage that correlates to the amount of alcohol in the air.   When the sensor is left in storage for long periods, the calibration of the device can drift.  When first being put into use after a long storage (1 month or more), the device benefits from being powered on for 24-48 hours to break it in for maximum accuracy.  We have noticed that sensors tend to drop about 30-40 points after operating for about 24 hours with no alcohol present when we first receive them.\u003c\/p\u003e\n\u003cp\u003eWhen bench-top testing, the sensor will take 5-10 minutes to fully warm up.  During the warm-up time, the sensor will read high and slowly decrease until the reading stabilizes.\u003c\/p\u003e\n\u003cp\u003eThe output of the sensing element is available as an analog output proportional to the level of alcohol being sensed.  This output is typically fed into an analog input on an MCU so that it can be measured.  That analog output is also run through an LM393 comparator which provides a digital output.  The trigger point for the digital output is adjustable using the potentiometer on the back of the module.  An LED labeled D0 is lit when the analog output exceeds the limit as set by the potentiometer and the digital output (D0) goes LOW.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a right-angle male header on the board for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVCC\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e– Connect to 5V\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e– Connect to ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eD0\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e– Digital output of comparator circuit.  Active LOW when alcohol set point is reached\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eA0\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e– Analog output of sensor. Voltage increases with alcohol detection\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese devices work as expected, in that they detect the presence of alcohol and provide an analog output relative the amount of alcohol that is detected.  Somewhat surprisingly, even having a glass of wine within a couple of feet of the sensor is detected.  Don’t ask me how I know that…..  Taking it to the next level such as correlating the data it outputs to a specific Blood Alcohol Content (BAC) that will stand up in court is a whole different ball game.\u003c\/p\u003e\n\u003cp\u003ePart of the difficulty is that temperature and humidity have an effect on the readings.  This can be demonstrated by running the sample program below and breathing lightly on the sensor (with no alcohol involved).  The sensor reading will go up due to humidity and heat in the breath.  Then try blowing hard on the sensor and the reading will go down since the strong air blowing on the sensor cools it down which causes a lower reading.  The sensor has a built-in heater, so for best stability it should be given some time to heat up (warm to the touch) which will minimize the effect of temperature.\u003c\/p\u003e\n\u003cp\u003eThe other part of the difficulty in a BAC application is in coming up with a standard by which to calibrate the reading you are getting to a specific BAC.\u003c\/p\u003e\n\u003cp\u003eTo avoid getting too scientific, I went the route of trying to correlate the readings by drinking wine in known 5oz (1 serving) quantities over time  and comparing that to standardized BAC charts that you can find on the internet that estimate your BAC given your weight, the amount of alcohol consumed and the time span over which you drank it.    Here is an example\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e\u003ca href=\"https:\/\/www.dmv.ca.gov\/portal\/dmv\/detail\/pubs\/hdbk\/actions_drink\" rel=\"noopener noreferrer\" target=\"_blank\"\u003echart\u003c\/a\u003e\u003c\/strong\u003e.\u003c\/p\u003e\n\u003cp\u003eNote that you take .01% off for every 40 minutes of time while drinking.  Below is a chart I filled out as part of my scientific quest.  The last entry was with an alcohol swab placed over the sensor to determine the upper limit of the measurement.\u003cbr\u003e\u003c\/p\u003e\n\u003ctable class=\"table table-bordered\" width=\"817\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"91\"\u003eDrink is 5 oz of wine\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e(1 serving)\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd width=\"66\"\u003ePer BAC Chart\u003c\/td\u003e\n\u003ctd width=\"66\"\u003eTime\u003c\/td\u003e\n\u003ctd width=\"96\"\u003ePer BAC Chart\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eAdj  w\/ Time\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd width=\"120\"\u003eSensor Reading 5 mins after finishing drink\u003c\/td\u003e\n\u003ctd width=\"162\"\u003eDrunkedness\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"91\"\u003eStart\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e:00\u003c\/td\u003e\n\u003ctd width=\"96\"\u003e\u003c\/td\u003e\n\u003ctd width=\"120\"\u003e90\u003c\/td\u003e\n\u003ctd width=\"162\"\u003eStone Cold Sober\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"91\"\u003e1 Drink\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e.03\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e:20\u003c\/td\u003e\n\u003ctd width=\"96\"\u003e\u003c\/td\u003e\n\u003ctd width=\"120\"\u003e300\u003c\/td\u003e\n\u003ctd width=\"162\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"91\"\u003e2 Drinks\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e.06 – .07\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e:40\u003c\/td\u003e\n\u003ctd width=\"96\"\u003e.05-.06\u003c\/td\u003e\n\u003ctd width=\"120\"\u003e362\u003c\/td\u003e\n\u003ctd width=\"162\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"91\"\u003e3 Drinks\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e.1\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e1:07\u003c\/td\u003e\n\u003ctd width=\"96\"\u003e.09\u003c\/td\u003e\n\u003ctd width=\"120\"\u003e404\u003c\/td\u003e\n\u003ctd width=\"162\"\u003eShould be legally drunk\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"91\"\u003e4 Drinks\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e.13\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e1:30\u003c\/td\u003e\n\u003ctd width=\"96\"\u003e.11\u003c\/td\u003e\n\u003ctd width=\"120\"\u003e435\u003c\/td\u003e\n\u003ctd width=\"162\"\u003eEven Drunkerer\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"91\"\u003eAlcohol swab\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e\u003c\/td\u003e\n\u003ctd width=\"66\"\u003e\u003c\/td\u003e\n\u003ctd width=\"96\"\u003e\u003c\/td\u003e\n\u003ctd width=\"120\"\u003e811\u003c\/td\u003e\n\u003ctd width=\"162\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cspan\u003eThese values were used in the program below.  At the end of the ‘test session’, it was clear that it was easy to tell if someone had been drinking, but determining at which point a person was legally drunk would need more science\/engineering than has been presented here.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eTo hook up the module:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eConnect the A0 analog output pin to any analog input pin on the MCU.  We are using A0 in our example.\u003c\/li\u003e\n\u003cli\u003eIf using the digital output, connect the D0 pin to any digital input pin on the MCU.  We are  using D8 in our example.\u003c\/li\u003e\n\u003cli\u003eHook up Vcc to 5V and ground to ground.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eAlcohol Gas Sensor MQ-3 Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*  MOQ-3 Alcohol Sensor Module Test\u003c\/span\u003e\n\n\u003cspan\u003e   This type of sensor is commonly used for breath analyzer applications where\u003c\/span\u003e\n\u003cspan\u003e   the blood alcohol content is estimated by measuring the amount of alcohol being\u003c\/span\u003e\n\u003cspan\u003e   released when a person exhales onto the sensor.\u003c\/span\u003e\n\u003cspan\u003e   \u003c\/span\u003e\n\u003cspan\u003e   Monitor sensor analog output 'A0' on ADC input A0\u003c\/span\u003e\n\u003cspan\u003e   Monitor sensor digital output 'D0' on digital input pin 8\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003e\/\/ Define pins used below\u003c\/span\u003e\n\u003cspan\u003e#define\u003c\/span\u003e \u003cspan\u003eADC_PIN\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e      \u003cspan\u003e\/\/ Use any available ADC Pin, connect to A0 sensor pin\u003c\/span\u003e\n\u003cspan\u003e#define\u003c\/span\u003e \u003cspan\u003eDIGITAL_PIN\u003c\/span\u003e \u003cspan\u003e8\u003c\/span\u003e   \u003cspan\u003e\/\/ Use any available digital pin, connect to D0 sensor pin\u003c\/span\u003e\n\u003cspan\u003e#define\u003c\/span\u003e \u003cspan\u003eWARMUP_TIME\u003c\/span\u003e \u003cspan\u003e30\u003c\/span\u003e  \u003cspan\u003e\/\/ Warmup time in Seconds\u003c\/span\u003e\n\u003cspan\u003e#define\u003c\/span\u003e \u003cspan\u003eSOBER\u003c\/span\u003e \u003cspan\u003e150\u003c\/span\u003e       \u003cspan\u003e\/\/ Max value considered to be sober\u003c\/span\u003e\n\u003cspan\u003e#define\u003c\/span\u003e \u003cspan\u003eDRUNK\u003c\/span\u003e \u003cspan\u003e400\u003c\/span\u003e       \u003cspan\u003e\/\/ Min value considered to be drunk\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e          \u003cspan\u003e\/\/ Set Serial Monitor window comm speed\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Warming up the sensor \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/Wait while we warm up the sensor\u003c\/span\u003e\n  \u003cspan\u003efor\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003ei\u003c\/span\u003e\u003cspan\u003e=\u003c\/span\u003e\u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003ei\u003c\/span\u003e\u003cspan\u003e\u0026lt;=\u003c\/span\u003e \u003cspan\u003eWARMUP_TIME\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003ei\u003c\/span\u003e\u003cspan\u003e++\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\". \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" Warmup Complete\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eval_ADC\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eADC_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e          \u003cspan\u003e\/\/ Read analog value from sensor\u003c\/span\u003e\n  \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eval_Digital\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDIGITAL_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Read  digital value from sensor\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Alcohol Analog Data = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Printout the raw data\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eval_ADC\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"  Digital Output = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eval_Digital\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e          \n                                             \u003cspan\u003e\/\/ Printout our estimate of drunkenness\u003c\/span\u003e\n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eval_ADC\u003c\/span\u003e \u003cspan\u003e\u0026lt;=\u003c\/span\u003e \u003cspan\u003eSOBER\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"  Conclusion:  Stone Cold Sober!\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003eelse\u003c\/span\u003e \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eval_ADC\u003c\/span\u003e \u003cspan\u003e\u0026gt;\u003c\/span\u003e \u003cspan\u003eDRUNK\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"  Conclusion:  Yep, your DRUNK\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003eelse\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"  Drinking - but within legal limits\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Take a reading every second for test purposes.\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eTested for basic alcohol detection\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"854\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e        V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e        I\u003csub\u003e(typ)\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e130mA (typ)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e       V\u003csub\u003eout\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eAnalog Output\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 350mV to 4V (typ)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e       Sensor Output\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMeasurement Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e25~500 ppm alcohol\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e      Sensor Probe Board\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e32mm x 20mm (1.26 x 0.8″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eDatasheet\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/datasheets\/Sensors\/Biometric\/MQ-3%20ver1.3%20-%20Manual.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eMQ-3 Sensor\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683370098923,"sku":"","price":9.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/MQ-3-Alcohol-Ethanol-Sensor-Module.jpg?v=1723005305"},{"product_id":"ball-tilt-switch-module","title":"Ball Tilt Switch Module","description":"\u003cp\u003e\u003cspan\u003eThe Ball Tilt Switch Module detects when the module is tilted via an electrical switch closure activated by a metallic rolling ball.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Ball Tilt Switch Module detects when the module is tilted via a switch closure activated by a metallic rolling ball.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eBall Tilt Switch Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF BALL TILT SWITCH MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eOutputs logic HIGH or LOW depending on how module is tilted.\u003c\/li\u003e\n\u003cli\u003eBuilt-in 10K pull-up resistor\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis module incorporates a small metallic roller ball in a housing.   When the module is tilted, the ball rolls and makes contact with switch contacts.\u003c\/p\u003e\n\u003cp\u003eWith the connector end of the module low, a 10K pull-up resistor pulls the output HIGH.  If the connector end is raised, the ball travels to the other end of the housing where the output is grounded and thus goes LOW.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘-‘\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCenter pin\u003c\/strong\u003e = Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eS =\u003c\/strong\u003e Signal output, connects to digital input on uC\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a basic module that can be used to experiment with taking some action if the module is tilted.  They can be though of as a simple mechanical switch.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eBasic operation verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eThis is similar to the KY-20 module.\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"840\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Vcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 – 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Logic high\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to Vcc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLogic Low\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to Ground\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eDimensions\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e19mm x 16mm  (0.75 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683373441259,"sku":"","price":2.22,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Tilt-Ball-Switch-Module.jpg?v=1723005301"},{"product_id":"digital-thermistor-temperature-sensor-module","title":"Digital Thermistor Temperature Sensor Module","description":"\u003cp\u003e\u003cspan\u003eNTC thermistor with analog output and adjustable digital output.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Digital Thermistor Temperature Sensor Module uses an NTC thermistor to measure temperature and provides both digital and analog outputs.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDigital Thermistor Temperature Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF DIGITAL THERMISTOR TEMPERATURE SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUses NTC thermistor\u003c\/li\u003e\n\u003cli\u003eMeasurement range of -55 to +125°C\u003c\/li\u003e\n\u003cli\u003eProvides analog output of reading\u003c\/li\u003e\n\u003cli\u003eProvides digital output with adjustable temperature set-point\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe module uses an NTC thermistor to measure temperature and provides both analog and digital outputs.\u003c\/p\u003e\n\u003cp\u003eThermistors are essentially resistors whose resistance value changes with changes in temperature.  NTC stands for ‘Negative Temperature Coefficient which means that the sensor resistance will decrease as temperature increases.\u003c\/p\u003e\n\u003cp\u003eThe thermistor is in series with an 10K resistor which creates a voltage divider.  As the thermistor warms up, the resistance lowers and the analog output either increases towards Vcc or decreases toward ground depending on the module construction.\u003c\/p\u003e\n\u003cp\u003eThere is a red LED1 that is lit whenever power is applied to the module.\u003c\/p\u003e\n\u003ch3\u003eOutputs\u003c\/h3\u003e\n\u003cp\u003eThe analog (\u003cstrong\u003eA0\u003c\/strong\u003e) output is the raw analog voltage output from the thermistor.  This is normally input into an analog port on an MCU where it can be read and the temperature can be calculated.\u003c\/p\u003e\n\u003cp\u003eThe digital (\u003cstrong\u003eD0\u003c\/strong\u003e) output is normally LOW and goes HIGH when a temperature threshold has been reached.  When the output goes HIGH, LED2 lights.  The set-point for the temperature threshold can be adjusted using the potentiometer on the module.  Turning the adjustment CCW increases the temperature set-point.  This output is normally connected to a digital input on an MCU or could directly control a relay or similar device once the temperature threshold has been reached.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 4-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eA0 =\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eAnalog output, connects to analog input on MCU\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND \/ G\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’\u003c\/strong\u003e = Vcc (3.3 or 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eD0\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Digital output, connects to digital input on MCU\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese modules are interesting for experimenting with thermistors.\u003c\/p\u003e\n\u003cp\u003eThermistors do require post processing to convert their output to temperature and are not as easy to use as sensors that output directly in temperature such as the LM35 or DS18B20.  If your goal is simply to get accurate temperature readings, I would recommend sticking with one of those sensors, some of which are available below.\u003c\/p\u003e\n\u003cp\u003eThe simple program below monitors both the analog and digital outputs of the device and prints the results on the Serial Monitor window.  If you are looking for a program that converts the analog output to a temperature, you can find one\u003cspan\u003e \u003c\/span\u003e\u003c\/p\u003e\n\u003ch3\u003eDigital Thermistor Temperature Sensor Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eDigital Thermistor temp Sensor module test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code for reading the outputs of the thermistor module. \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eanalogPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Any analog pin on Arduino\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003edigitalPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e3\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Any digital pin on Arduino\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eadcSample\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e   \u003cspan\u003e\/\/ Variables to hold values\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003edigitalSample\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Set comm speed for debug window messages\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e  \n  \u003cspan\u003eadcSample\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eanalogPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e        \u003cspan\u003e\/\/ read analog value from pin and store\u003c\/span\u003e\n  \u003cspan\u003edigitalSample\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edigitalPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ read digital value from pin and store\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Analog Output: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eadcSample\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Digital Output: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edigitalSample\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e3000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eBasic outputs verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eThis module is the same or similar to the KY-028\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"855\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Vcc\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 – 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 7mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003e Operating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Temperature Range\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e -55 to +125°C   (+\/- 0.5°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e36 x 15mm  (1.4 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683389923563,"sku":"","price":3.47,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Digital-Thermistor-Temp-Sensor-Module-1.jpg?v=1723005296"},{"product_id":"dht11-humidity-temperature-sensor-module","title":"DHT11 Humidity \/ Temperature Sensor Module","description":"\u003cp\u003e\u003cspan\u003eSensor uses a 1-wire interface to report both humidity (20-90%) and temperature (0-50°C).\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe DHT11 Humidity \/ Temperature Sensor Module uses a 1-wire interface to report both humidity (20-90%) and temperature (0-50°C).\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDHT11 Humidity \/ Temperature Sensor Module\u003c\/li\u003e\n\u003cli\u003eFemale \/ Female 3 x 8″ jumper cable for connecting the module to a microcontroller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF DHT11 HUMIDITY \/ TEMPERATURE  MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eReports humidity over range of 20% to 90%\u003c\/li\u003e\n\u003cli\u003eReports temperature over range of 0°C to 50°C\u003c\/li\u003e\n\u003cli\u003eUses 1-Wire interface\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V logic compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis module utilizes the DHT-11 which is a combined humidity and temperature sensor assembly.   It includes a power LED that lights when power is applied as well as a 3-wire F\/F cable for hooking it up.\u003c\/p\u003e\n\u003cp\u003eThe DHT11 sensor is capable of reading humidity over the range of 20-90% with an accuracy of +\/- 5% and temperature over the range of 0 – 50°C with an accuracy of +\/- 2°C.\u003c\/p\u003e\n\u003cp\u003eThe sensor is written and read via a single digital pin and requires the use of a library for the communications as the communication protocol itself is quite complex.  With an Arduino, the DHTLib library can be downloaded from the Arduino site or GitHub.\u003c\/p\u003e\n\u003cp\u003eThe device does have a minimum sampling time of 1Sec so the sensor cannot be polled more often than once every second or bad data may be retrieved.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThe module has a 3-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVcc \u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e=      Connect to 3.3V to 5V.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eDATA \u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e=  Digital sensor I\/O – Connects to a digital pin on a microcontroller\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND \u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e=      Connect to system ground.  This ground needs to be in common with the microcontroller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a commonly used module for basic humidity and temperature measurement.  Once up and running with a microcontroller, it is easy to test basic functionality of the module by breathing on the sensor.  That will increase both humidity and temperature temporarily.\u003c\/p\u003e\n\u003cp\u003eThe DHT11 has a narrower measurement range and lower accuracy compared to the similar DHT22 sensor which is why it costs less. If you are looking for best accuracy, you may want to check out our DHT22 module below.\u003c\/p\u003e\n\u003cp\u003eThe sensor can not be polled faster than once every second, otherwise data errors may occur.  If you get occasional bad readings (such as -999.00) try increasing the delay between reads.  Our sample program below uses a 2 second delay just to be safe.\u003c\/p\u003e\n\u003cp\u003eOnce the DHT library is installed, using the device is fairly simple as shown in the code below.\u003c\/p\u003e\n\u003ch3\u003eDHT11 Humidity \/ Temperature Sensor Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003e  DHT11 Temp \/ Humidity sensor module test\u003c\/span\u003e\n\n\u003cspan\u003e  Basic code for exercising the module.\u003c\/span\u003e\n\u003cspan\u003e  Requires DHT library to be installed\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003e#include\u003c\/span\u003e \u003cspan\u003e\u0026lt;\u003c\/span\u003e\u003cspan\u003edht\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eh\u003c\/span\u003e\u003cspan\u003e\u0026gt;\u003c\/span\u003e          \u003cspan\u003e\/\/ Include the DHT library\u003c\/span\u003e\n\u003cspan\u003edht\u003c\/span\u003e \u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                  \u003cspan\u003e\/\/ Create instance of DHT object\u003c\/span\u003e\n\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eDHT11_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e7\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Connects to sensor I\/O, use any digital pin\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensor\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e               \u003cspan\u003e\/\/ Dummy variable for sensor read\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Initialize serial comm\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003esensor\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eread11\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT11_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Read sensor\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Temperature = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Printout returned results\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003etemperature\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" C\\t\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Humidity = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ehumidity\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" %\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e2000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ 1 sec min read time, so using 2 to be safe\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eWire colors may vary from the pics\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"862\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 to 5.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003emax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 5mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          T\u003csub\u003emin\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Minimum Sampling Period\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e1 second\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Humidity\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e20% to 90%RH  (+\/- 5%RH)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Temperature\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 0 – 50°C   (+\/- 2°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e31mm x 14mm (1.2 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"https:\/\/osepp.com\/wp-content\/uploads\/2015\/04\/DHT11-Technical-Data-Sheet-Translated-Version.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eDHT11\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683392413931,"sku":"","price":4.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/DHT11-Humidity-Temperature-Module-with-Cable.jpg?v=1723005291"},{"product_id":"dht22-humidity-temperature-sensor-module","title":"DHT22 Humidity \/ Temperature Sensor Module","description":"\u003cp\u003e\u003cspan\u003e1-wire interface reports humidity (0 to 99.9%) and temp (-40 to 80°C).\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe DHT22 Humidity \/ Temperature Sensor Module uses a 1-wire interface to report both humidity (0 – 99.9%) and temperature (-40 – 80°C).\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDHT22 Humidity \/ Temperature Sensor Module\u003c\/li\u003e\n\u003cli\u003eFemale \/ Female 3 x 8″ jumper cable for connecting the module to a microcontroller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF DHT22 HUMIDITY \/ TEMPERATURE  MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eReports humidity over range of 0% to 99.9%\u003c\/li\u003e\n\u003cli\u003eReports temperature over range of -40°C to 80°C\u003c\/li\u003e\n\u003cli\u003eUses 1-Wire interface\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V logic compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis module utilizes the DHT22 which is a combined humidity and temperature sensor assembly.  Note that AM2302 is just another name sometimes used for the DHT22 and you may see this marking on the module.\u003c\/p\u003e\n\u003cp\u003eThe DHT22 sensor is capable of reading humidity over the full range of 0 to 99.9% with an accuracy of +\/- 2% and temperature over the range of -40 to 125°C with an accuracy of +\/- 0.5°C.   The humidity accuracy increases to +\/-5% at temperature extremes.\u003c\/p\u003e\n\u003cp\u003eThe device does have a minimum sampling time of 2 seconds so the sensor cannot be polled more often than every 2 seconds or bad data may be retrieved.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThe module has a 3-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’\u003c\/strong\u003e  =       Connect to 3.3V to 5V.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eOUT\u003c\/strong\u003e  =  Digital sensor I\/O – Connects to a digital pin on a microcontroller\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘- ‘\u003c\/strong\u003e  =       Connect to system ground.  This ground needs to be in common with the microcontroller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe sensor is written and read via a single digital pin and requires the use of a library for the communications.  With an Arduino, the DHTLib library can be downloaded from the Arduino site or GitHub.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a commonly used module for basic humidity and temperature measurement.  Once up and running with a microcontroller, it is easy to test basic functionality of the module by breathing on the sensor.  That will increase both humidity and temperature temporarily.\u003cimg decoding=\"async\" class=\"alignright wp-image-10211 size-medium entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-300x225.jpg\" alt=\"DHT22 Humidity Temperature Module - In Use\" width=\"300\" height=\"225\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use.jpg 800w\" data-lazy-sizes=\"(max-width: 300px) 100vw, 300px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-300x225.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/04\/DHT22-Humidity-Temperature-Module-In-Use.jpg 800w\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe DHT22 has a larger measurement range and higher accuracy compared to the similar DHT11 sensor which is why it costs more.  If you are looking for a less expensive option, check out our DHT11 Module below.\u003c\/p\u003e\n\u003cp\u003eThese sensors are often spec’d to read temps of up to 125C.  While the circuit will indeed measure temps that high, the plastic housing will start to deform, therefore I recommend not using it at temps higher than 80C which is higher than most applications will require anyway.\u003c\/p\u003e\n\u003cp\u003eThe sensor can not be polled faster than once every 2 seconds, otherwise data errors may occur.  If you get occasional bad readings (such as -999.00) try increasing the delay between reads.  Our sample program below uses a 3 second delay just to be safe.\u003c\/p\u003e\n\u003cp\u003eOnce the DHT library is installed, using the device is fairly simple as shown in the code below.  We are using pin 7 for the digital I\/O, but this can be changed to any digital pin.\u003c\/p\u003e\n\u003ch3\u003eDHT22 Humidity \/ Temperature Sensor Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003e  DHT22 Temp \/ Humidity sensor module test\u003c\/span\u003e\n\n\u003cspan\u003e  Basic code for exercising the module.\u003c\/span\u003e\n\u003cspan\u003e  Requires DHT library to be installed\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003e#include\u003c\/span\u003e \u003cspan\u003e\u0026lt;\u003c\/span\u003e\u003cspan\u003edht\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eh\u003c\/span\u003e\u003cspan\u003e\u0026gt;\u003c\/span\u003e          \u003cspan\u003e\/\/ Include the DHT library\u003c\/span\u003e\n\u003cspan\u003edht\u003c\/span\u003e \u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                  \u003cspan\u003e\/\/ Create instance of DHT object\u003c\/span\u003e\n\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eDHT22_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e7\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Connects to sensor I\/O, use any digital pin\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensor\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e               \u003cspan\u003e\/\/ Dummy variable for sensor read\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Initialize serial comm\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003esensor\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eread22\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT22_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Read sensor\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Temperature = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Printout returned results\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003etemperature\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" C  \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Humidity = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ehumidity\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" %\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e3000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ 2 sec min read time, so using 3 to be safe\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested for correct operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eWire colors may vary from the pics\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"862\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 to 5.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003emax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt;500uA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          T\u003csub\u003emin\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Minimum Sampling Period\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e2 seconds\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Humidity\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e0% to 99.9%RH  (+\/- 2%RH)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Temperature\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e -40 to 80°C   (+\/- 0.5°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e37 x 16mm (1.5 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"https:\/\/akizukidenshi.com\/download\/ds\/aosong\/AM2302.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eDHT22\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683396903147,"sku":"","price":7.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/DHT22-Humidity-Temperature-Module.jpg?v=1723005280"},{"product_id":"ds18b20-digital-temperature-sensor-module-1wire-arduino","title":"DS18B20 Digital Temperature Sensor Module 1-Wire 3.3V\/5V with LED Indicator | Arduino Compatible","description":"\u003ch2\u003eDS18B20 Digital Temperature Sensor Module — 1-Wire, 3.3V\/5V, Arduino Compatible\u003c\/h2\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eDS18B20 digital temperature sensor module\u003c\/strong\u003e is one of the most popular temperature sensing solutions in the maker and embedded systems community. Built around the Dallas\/Maxim DS18B20 IC, this compact 20×15mm PCB module communicates via the 1-Wire protocol — requiring only a single digital pin on your microcontroller to deliver accurate digital temperature readings from -55°C to +85°C. An onboard LED flashes during 1-Wire communication, providing instant visual confirmation that your sensor is active and talking to your MCU.\u003c\/p\u003e\n\n\u003ch3\u003eSpecifications\u003c\/h3\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSensor IC\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eDS18B20 (Dallas\/Maxim)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eCommunication\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e1-Wire serial interface\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSupply Voltage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e3.0V – 5.5V (3.3V and 5V compatible)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eTemperature Range\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e-55°C to +85°C\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eAccuracy\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e±0.5°C (-10°C to +85°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eResolution\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e9–12 bit (programmable)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eLogic High\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e\u0026gt;2.2V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eLogic Low\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e\u0026lt;0.8V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003ePCB Dimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e20 × 15mm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eConnector\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e3-pin header (G\/−, VCC, S\/Data)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eIndicator\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eLED flashes during 1-Wire communication\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003ePackage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eSS Encapsulated TO-92 on PCB\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003ePin Connections\u003c\/h3\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003cth\u003ePin Label\u003c\/th\u003e\n\u003cth\u003eFunction\u003c\/th\u003e\n\u003cth\u003eConnect To\u003c\/th\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003e− \/ G\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003ctd\u003eArduino GND\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eCenter \/ R\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eVCC (3.3–5V)\u003c\/td\u003e\n\u003ctd\u003eArduino 3.3V or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eS \/ Y\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e1-Wire Data Bus\u003c\/td\u003e\n\u003ctd\u003eAny Arduino digital pin\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003eArduino Quick-Start\u003c\/h3\u003e\n\u003col\u003e\n  \u003cli\u003eConnect \u003cstrong\u003eG\u003c\/strong\u003e to Arduino GND, \u003cstrong\u003eR\u003c\/strong\u003e to 5V, \u003cstrong\u003eS\u003c\/strong\u003e to digital pin 4.\u003c\/li\u003e\n  \u003cli\u003eAdd a \u003cstrong\u003e4.7kΩ pull-up resistor\u003c\/strong\u003e between the S pin and VCC (required for 1-Wire bus).\u003c\/li\u003e\n  \u003cli\u003eInstall \u003cstrong\u003eOneWire\u003c\/strong\u003e and \u003cstrong\u003eDallasTemperature\u003c\/strong\u003e libraries via Arduino IDE Library Manager.\u003c\/li\u003e\n  \u003cli\u003eUpload the example sketch and open Serial Monitor at 9600 baud to read temperature.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cp\u003e\u003cem\u003eTip: If the sensor reads -127°C, the 4.7kΩ pull-up resistor is missing or not connected correctly.\u003c\/em\u003e\u003c\/p\u003e\n\n\u003ch3\u003eWhy Choose the DS18B20?\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eSingle-wire interface\u003c\/strong\u003e — only one MCU digital pin required, freeing up I\/O for other sensors\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eMultiple sensors on one bus\u003c\/strong\u003e — daisy-chain multiple DS18B20s on a single wire using unique 64-bit serial addresses\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eDigital output\u003c\/strong\u003e — immune to electrical noise, ideal for long cable runs unlike analog sensors\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eProgrammable resolution\u003c\/strong\u003e — 9 to 12-bit resolution for speed vs. accuracy trade-off\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003e3.3V and 5V compatible\u003c\/strong\u003e — works with Arduino, ESP32, ESP8266, Raspberry Pi, and STM32\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eLED communication indicator\u003c\/strong\u003e — instant visual feedback during sensor polling\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eInspected and verified\u003c\/strong\u003e — basic operation tested before shipping\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eCommon Applications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eArduino temperature monitoring and data logging\u003c\/li\u003e\n  \u003cli\u003eThermostat and temperature controller projects\u003c\/li\u003e\n  \u003cli\u003e3D printer heated bed and hotend temperature sensing\u003c\/li\u003e\n  \u003cli\u003eAquarium and fish tank temperature monitoring\u003c\/li\u003e\n  \u003cli\u003eWeather station and environmental sensing\u003c\/li\u003e\n  \u003cli\u003eCooling fan control based on temperature threshold\u003c\/li\u003e\n  \u003cli\u003eHome automation temperature nodes (ESP8266\/ESP32 + MQTT)\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003ePackage Contents\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e1× DS18B20 Digital Temperature Sensor Module (20×15mm PCB)\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683412500715,"sku":"","price":4.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/DS18B20-Digital-Temp-Sensor-Module-1.jpg?v=1723005271"},{"product_id":"ds18b20-waterproof-digital-temperature-sensor-1m-cable-1wire-arduino","title":"DS18B20 Waterproof Digital Temperature Sensor 1m Cable 1-Wire -55°C to +85°C | Arduino Compatible","description":"\u003ch2\u003eDS18B20 Waterproof Digital Temperature Sensor — 1m Cable, Stainless Steel Probe\u003c\/h2\u003e\n\n\u003cp\u003eWhen you need to measure temperature in wet, submerged, or remote environments, the \u003cstrong\u003eDS18B20 waterproof temperature sensor\u003c\/strong\u003e is the definitive solution. The Dallas\/Maxim DS18B20 IC is sealed inside a stainless steel probe and connected via a 1-meter unterminated cable — ready to be immersed in liquids, buried in soil, or mounted on heatsinks far from your microcontroller. A 4.7kΩ pull-up resistor is included for immediate use.\u003c\/p\u003e\n\n\u003ch3\u003eSpecifications\u003c\/h3\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSensor IC\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eDS18B20 (Dallas\/Maxim)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eCommunication\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e1-Wire serial interface\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSupply Voltage\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e3.0V – 5.5V (3.3V and 5V compatible)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eTemperature Range\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e-55°C to +85°C\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eAccuracy\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e±0.5°C (-10°C to +85°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eResolution\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e9–12 bit (programmable)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eCable Length\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e1 meter (approx. 36 inches)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eProbe Housing\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eStainless steel waterproof can\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eCable Termination\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eUnterminated (bare wire ends)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eManufacturer\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eDallas \/ Maxim\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003eWire Color Code\u003c\/h3\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003cth\u003eWire Color\u003c\/th\u003e\n\u003cth\u003eFunction\u003c\/th\u003e\n\u003cth\u003eConnect To\u003c\/th\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eRed\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eVDD (Power)\u003c\/td\u003e\n\u003ctd\u003e3.3V or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eBlack\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGND (Ground)\u003c\/td\u003e\n\u003ctd\u003eArduino GND\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eYellow\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eDQ (1-Wire Data)\u003c\/td\u003e\n\u003ctd\u003eAny Arduino digital pin\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003eArduino Quick-Start\u003c\/h3\u003e\n\u003col\u003e\n  \u003cli\u003eConnect \u003cstrong\u003eRed\u003c\/strong\u003e to 5V, \u003cstrong\u003eBlack\u003c\/strong\u003e to GND, \u003cstrong\u003eYellow\u003c\/strong\u003e to digital pin 4.\u003c\/li\u003e\n  \u003cli\u003eConnect the included \u003cstrong\u003e4.7kΩ pull-up resistor\u003c\/strong\u003e between the Yellow (data) wire and Red (VCC).\u003c\/li\u003e\n  \u003cli\u003eInstall \u003cstrong\u003eOneWire\u003c\/strong\u003e and \u003cstrong\u003eDallasTemperature\u003c\/strong\u003e libraries via Arduino IDE Library Manager.\u003c\/li\u003e\n  \u003cli\u003eUpload the example sketch and open Serial Monitor at 9600 baud to read temperature.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cp\u003e\u003cem\u003eTip: If the sensor reads -127°C, check that the 4.7kΩ pull-up resistor is correctly installed between data and VCC.\u003c\/em\u003e\u003c\/p\u003e\n\n\u003ch3\u003eWhy Choose This Waterproof Sensor?\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eWaterproof stainless steel probe\u003c\/strong\u003e — safe for liquid immersion in water, aquariums, pools, and pipes\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003e1-meter cable\u003c\/strong\u003e — remote sensing up to 1m from your MCU without signal degradation\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eDigital 1-Wire output\u003c\/strong\u003e — immune to electrical noise, unlike analog sensors on long cable runs\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eMultiple sensors on one bus\u003c\/strong\u003e — chain multiple DS18B20 probes on a single digital pin\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003e3.3V and 5V compatible\u003c\/strong\u003e — works with Arduino, ESP8266, ESP32, Raspberry Pi, STM32\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003ePull-up resistor included\u003c\/strong\u003e — everything needed for immediate use\u003c\/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eParasitic power mode\u003c\/strong\u003e — can operate on just 2 wires (GND + data) for simplified wiring\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eCommon Applications\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAquarium and fish tank water temperature monitoring\u003c\/li\u003e\n  \u003cli\u003eSwimming pool and hot tub temperature sensing\u003c\/li\u003e\n  \u003cli\u003eSoil temperature measurement for agriculture and gardening\u003c\/li\u003e\n  \u003cli\u003eWater heater and boiler temperature control\u003c\/li\u003e\n  \u003cli\u003eHeatsink and PCB thermal monitoring\u003c\/li\u003e\n  \u003cli\u003eOutdoor weather station temperature probes\u003c\/li\u003e\n  \u003cli\u003eSous vide cooking temperature control\u003c\/li\u003e\n  \u003cli\u003ePipe freeze detection systems\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eFrequently Asked Questions\u003c\/h3\u003e\n\u003cp\u003e\u003cstrong\u003eQ: Can I extend the cable beyond 1 meter?\u003c\/strong\u003e\u003cbr\u003eA: Yes. The 1-Wire bus supports cable runs of several meters. For longer runs (\u0026gt;5m), use a stronger pull-up resistor (2.2kΩ) and ensure good cable shielding to prevent noise pickup.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: Can I connect multiple DS18B20 sensors to one Arduino pin?\u003c\/strong\u003e\u003cbr\u003eA: Yes. Each DS18B20 has a unique 64-bit address, allowing multiple sensors on a single 1-Wire bus. Use the DallasTemperature library to address each sensor individually.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: Is this truly waterproof for permanent submersion?\u003c\/strong\u003e\u003cbr\u003eA: The stainless steel probe is water-resistant and suitable for most liquid applications. For long-term submersion in harsh chemicals or high-pressure environments, additional sealing may be required.\u003c\/p\u003e\n\n\u003ch3\u003ePackage Contents\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e1× DS18B20 Waterproof Temperature Sensor (1m cable, stainless steel probe)\u003c\/li\u003e\n  \u003cli\u003e1× 4.7kΩ Pull-up Resistor\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683435831531,"sku":"","price":8.97,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/DS18B20-Waterproof-Digital-Temp-Sensor-1.jpg?v=1723005262"},{"product_id":"gy-21-htu21d-humidity-temperature-sensor-module","title":"GY-21 HTU21D Humidity \/ Temperature Sensor Module","description":"\u003cp\u003e\u003cspan\u003eMeasures 0 to100% humidity and -40 to 125°C temperature with I2C interface\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe GY-21 HTU21D Humidity \/ Temperature Sensor Module uses the I2C interface to report both humidity (0 – 100%) and temperature (-40 – 125°C).\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eGY-21 HTU21D Humidity \/ Temperature Sensor Module\u003c\/li\u003e\n\u003cli\u003e1×4 Male Header Strip\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF GY-21 HTU21D HUMIDITY \/ TEMPERATURE  MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eReports humidity over range of 0% to 100% RH\u003c\/li\u003e\n\u003cli\u003eHumidity reading accuracy is ±2% over 5 to 95% RH (typ)\u003c\/li\u003e\n\u003cli\u003eReports temperature over range of -40 to 125°C\u003c\/li\u003e\n\u003cli\u003eTemperature reading accuracy is ±0.6°C over range of -30°C to 90°C (typ)\u003c\/li\u003e\n\u003cli\u003eFast \u0026lt;50mS read time\u003c\/li\u003e\n\u003cli\u003eUses I2C interface\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V logic compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis GY-21 module mounts the HTU21D which is a combined humidity and temperature sensor.  The HTU21D sensor itself operates at 3V.  The backside of the module mounts a 3.3V regulator and level shifting MOSFET transistors to make the module compatible with both 3.3V and 5V MCUs.\u003c\/p\u003e\n\u003cp\u003eThe small size of the module allows it to be mounted into just about anything for monitoring or controlling humidity and\/or temperature such as thermostats, humidistats, indoor weather stations and similar devices.\u003c\/p\u003e\n\u003cp\u003eThe HTU21D sensor is capable of reading humidity over the full range of 0 to 100% RH with a typical accuracy of ± 2% over the range of 5 to 95% with a maximum of ± 5% at the extremes of the range.  Humidity reading has 12-bit resolution by default.\u003c\/p\u003e\n\u003cp\u003eThe maximum temperature range of the device is -40 to 125°C.  The HTU21D temperature sensor has a typical accuracy of ±0.4°C over the range of 0 to 70°C with a maximum of ±1°C over -30 to 90°C and a maximum of ±1.6°C at the extreme ends of the -40 to 125°C range.  The temperature reading has a 14-bit resolution by default.\u003c\/p\u003e\n\u003cp\u003eThe sensor has a small window for air to contact the sensor.  Keep contaminates away from the window as that can affect the accuracy of the humidity reading.  The window must remain open to the air, but it can be protected from dust and similar contaminates with a PTFE membrane, gauze or other material that still allows air to flow through or by positioning it in an enclosure where air passes through but is protected from excess dust or moisture.\u003c\/p\u003e\n\u003cp\u003eIf soldering to the board, it is safest to forego cleaning any flux from the board, though it can be done if care is used to not allow the cleaning solution to enter the window of the sensor.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThe module has a 4-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVIN\u003c\/strong\u003e  =   Connect to 3.3V or 5V to match MCU.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e  = Connect to system ground.  This ground needs to be in common with the MCU.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eSCL \u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e=   I2C Clock \/ SCL – Connects to SCL on MCU\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eSDA\u003c\/strong\u003e  =  I2C Data \/ SDA – Connects to SDA on MCU\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a nice very small module for humidity and temperature measurement with good accuracy and repeatability.\u003ca href=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use.jpg\"\u003e\u003cimg decoding=\"async\" class=\"alignright wp-image-10783 size-medium entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-300x225.jpg\" alt=\"GY-21 HTU21D Humidity Temperature Sensor Module - in Use\" width=\"300\" height=\"225\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use.jpg 800w\" data-lazy-sizes=\"(max-width: 300px) 100vw, 300px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-300x225.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-in-Use.jpg 800w\"\u003e\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003eOnce up and running with a microcontroller, it is easy to test basic functionality of the module by breathing on the sensor.  That will increase both humidity and temperature temporarily.\u003c\/p\u003e\n\u003cp\u003eThe test program below uses the Adafruit_HTU21DF.h library that can be downloaded from the Arduino IDE Library Manager.  It is very minimalistic, but easy to use.\u003c\/p\u003e\n\u003cp\u003eSimply connect the VIN pin to either 3.3V or 5V to match your MCU and ground to ground.\u003c\/p\u003e\n\u003cp\u003eSCL and SDA pins connect to the same on the MCU.\u003c\/p\u003e\n\u003cp\u003eThe program outputs the measured temperature in °C and °F along with the humidity.  Once the program is downloaded, open the Serial Monitor window and set to 9600 baud to see the output.  This shows an example output.  It is snowing outside, so humidity is very low.\u003c\/p\u003e\n\u003cp\u003e\u003cimg decoding=\"async\" class=\"aligncenter wp-image-10787 size-full entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output.jpg\" alt=\"GY-21 HTU21D Humidity Temperature Sensor Module - Program Output\" width=\"404\" height=\"129\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output.jpg 404w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output-300x96.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output-280x89.jpg 280w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output-400x128.jpg 400w\" data-lazy-sizes=\"(max-width: 404px) 100vw, 404px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 404px) 100vw, 404px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output.jpg 404w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output-300x96.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output-280x89.jpg 280w, https:\/\/protosupplies.com\/wp-content\/uploads\/2021\/02\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module-Program-Output-400x128.jpg 400w\"\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch3\u003eHTU21D Humidity \/ Temperature Sensor Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/***************************************************\u003c\/span\u003e\n\u003cspan\u003e  GY-21 HTU21D Test Program\u003c\/span\u003e\n\u003cspan\u003e  \u003c\/span\u003e\n\u003cspan\u003e  Connect Vin to 3-5VDC to match MCU\u003c\/span\u003e\n\u003cspan\u003e  Connect GND to ground\u003c\/span\u003e\n\u003cspan\u003e  Connect SCL to I2C SCL clock pin \u003c\/span\u003e\n\u003cspan\u003e  Connect SDA to I2C SDA data pin\u003c\/span\u003e\n\u003cspan\u003e ****************************************************\/\u003c\/span\u003e\n\n\u003cspan\u003e#include\u003c\/span\u003e \u003cspan\u003e\u0026lt;\u003c\/span\u003e\u003cspan\u003eWire\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eh\u003c\/span\u003e\u003cspan\u003e\u0026gt;\u003c\/span\u003e\n\u003cspan\u003e#include\u003c\/span\u003e \u003cspan\u003e\"Adafruit_HTU21DF.h\"\u003c\/span\u003e\n\n\u003cspan\u003eAdafruit_HTU21DF\u003c\/span\u003e \u003cspan\u003eHTU21\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eAdafruit_HTU21DF\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"HTU21D Test\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e!\u003c\/span\u003e\u003cspan\u003eHTU21\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Sensor not found!\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003ewhile\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003etempC\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eHTU21\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ereadTemperature\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003erelative_hum\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eHTU21\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ereadHumidity\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Temp: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003etempC\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" C  :  \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003etempF\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003etempC\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003e1.8\u003c\/span\u003e \u003cspan\u003e+\u003c\/span\u003e \u003cspan\u003e32\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Convert C to F\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003etempF\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" F     \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Relative Humidity: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003erelative_hum\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" %\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eNone\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"862\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 to 5.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003emax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt;200uA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          T\u003csub\u003emin\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e Minimum Sampling Period\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e50mS\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Humidity\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMax Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e0% to 100%RH  (± 5%RH)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eOptimum Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e5% to 95%RH  (± 2%RH typ)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e        Temperature\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMax Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e-40 to 125°C (±1.6°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eOptimum Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e -30 to 90°C   (±0.6°C typ )\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e13.5 x 10.5mm (0.53 x 0.42″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eTE\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003cspan\u003e\u003cstrong\u003e\u003ca href=\"https:\/\/www.te.com\/commerce\/DocumentDelivery\/DDEController?Action=showdoc\u0026amp;DocId=Data+Sheet%7FHPC199_6%7FA6%7Fpdf%7FEnglish%7FENG_DS_HPC199_6_A6.pdf%7FCAT-HSC0004\" rel=\"noopener\" target=\"_blank\"\u003eHTU21D\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683443138795,"sku":"","price":6.47,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/GY-21-HTU21D-Humidity-Temperature-Sensor-Module.jpg?v=1723005250"},{"product_id":"flame-sensor-module","title":"Flame Sensor Module","description":"\u003cp\u003e\u003cspan\u003eDetects open flame by detecting light that is in the infrared spectrum.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Flame Sensor Module is used to detect an open flame by detecting light that is in the infrared spectrum as produced by an open flame.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eFlame Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF FLAME SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDetects infrared in the spectrum produced by an open flame\u003c\/li\u003e\n\u003cli\u003eProvides both an analog and digital output with a sensitivity adjustment\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis sensor module is primarily used to detect an open flame.  It does this by detecting light that is in the IR (infrared) spectrum which is emitted by a flame.  That spectrum is typically in the range of 700-1100nm.\u003c\/p\u003e\n\u003cp\u003eThis module is similar to a regular IR detector, but with a broader detection range.  It can be used as a general IR detector for other applications where a broad detection range is desired.\u003c\/p\u003e\n\u003ch3\u003eOutputs\u003c\/h3\u003e\n\u003cp\u003eThe module has both an analog output and a digital output with sensitivity adjustment on the module.\u003c\/p\u003e\n\u003cp\u003eThe Analog output on ‘\u003cstrong\u003eA0\u003c\/strong\u003e‘ is normally a voltage of approximately 1\/2 Vcc when no signal is detected.  The actual voltage level will depend on the setting of the sensitivity pot. If a flame is detected, that output voltage will drop towards ground depending on the strength of the IR detected.\u003c\/p\u003e\n\u003cp\u003eThe Digital output on ‘\u003cstrong\u003eD0\u003c\/strong\u003e‘ is normally LOW.  When IR is detected by the sensor, the output goes HIGH.  The sensitivity adjustment can be used to set the trip point.  LED2 will light when the output goes HIGH.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 4-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND \/ G\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’\u003c\/strong\u003e = Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eA0 =\u003c\/strong\u003e Analog output, connects to analog input on uC\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eD0\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Digital output, connects to digital input on uC\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese modules are interesting for experimenting with flame detection as part of a fire detector setup.  They can also be used to monitor a flame to determine if it has gone out, such as a pilot light.  Commercial fire detection systems often also include light flicker detection to help determine if a flame is present since most sources of IR including sunlight can trigger this module, not just a flame.\u003c\/p\u003e\n\u003cp\u003eThe module is straight forward to use.  Hook up ground and Vcc (3.3 or 5V).  A red LED lights when power is applied.  There is a red or green LED2 that lights when IR within the sensor range is being detected.  If that LED is always on, adjust the sensitivity adjustment potentiometer CCW until the LED goes off.  If a match or other flame is then lit and held in front of the sensor, the LED should come on showing that it is being detected.  An IR TV remote can also be used to test the operation of the device by pointing it at the sensor and pressing any button.\u003c\/p\u003e\n\u003cp\u003eThe simple program below can be used to monitor both the analog and digital outputs of the device to see how it reacts to the presence of a flame.\u003c\/p\u003e\n\u003ch3\u003eFlame Sensor Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eFlame Sensor Module Test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code to monitor the outputs of the flame sensor module \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eflameDigitalPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e7\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Random digital pin for monitoring the digital output\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eflameAnalogPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Random analog pin for monitoring the analog output\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003edigitalValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Variable to hold the returned digital value\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eanalogValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Variable to hold the returned analog value\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameDigitalPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Set pin as Input\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameAnalogPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Set pin as Input\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Set output window comm rate\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n \n    \u003cspan\u003edigitalValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameDigitalPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003eanalogValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameAnalogPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Digital: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edigitalValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Analog: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eanalogValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n \n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eBasic outputs verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eThis module is the same or similar to the KY-026\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch4\u003e\u003cstrong\u003eTechnical Specifications\u003c\/strong\u003e\u003c\/h4\u003e\n\u003ctable class=\"table table-hover\" width=\"855\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Vcc\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 – 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt;  7mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003e Operating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Wavelength\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e700-1100nm (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e36 x 15mm  (1.4x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683446284523,"sku":"","price":3.12,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Flame-Detection-Module-1.jpg?v=1723005243"},{"product_id":"heartbeat-sensor-module","title":"Heartbeat Sensor Module","description":"\u003cp\u003e\u003cspan\u003eDetects changes in infrared light shining through a fingertip.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Heartbeat Sensor Module is used to experiment with detecting the heart rate of an individual by detecting changes in infrared light shining through a fingertip.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHeartbeat Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HEARTBEAT SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInfrared (IR) transmitter\u003c\/li\u003e\n\u003cli\u003eInfrared receiver\u003c\/li\u003e\n\u003cli\u003e3.3 or 5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eOperational Theory\u003c\/h3\u003e\n\u003cp\u003eThese sensor modules can be used to try to detect the heart rate of an individual.   It accomplishes this by shining an IR emitting LED on one side of a finger tip and detecting small changes in the received IR on the other side of the finger using a phototransistor.  The fluctuations in the transmitted IR is caused by the blood being pumped through the finger.  Commercial devices as used in doctor offices work on this same basic principal but obviously have a lot better capability.\u003cimg decoding=\"async\" class=\"alignright wp-image-11376 size-medium entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-300x225.jpg\" alt=\"Heartbeat Sensor Module Sensor Placement\" width=\"300\" height=\"225\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1.jpg 800w\" data-lazy-sizes=\"(max-width: 300px) 100vw, 300px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-300x225.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-300x225.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-768x576.jpg 768w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-249x187.jpg 249w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1-400x300.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Sensor-Placement-1.jpg 800w\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe module ships with the IR transmitter and receiver folded down to avoid damage.  These element should be carefully unfolded and placed in position so that the transmitter and receiver point at each other with a snug fit on a fingertip.\u003c\/p\u003e\n\u003cp\u003eThe module is straight forward to operate.  Hook up ground and Vcc (3.3 or 5V to match the MCU) and monitor the analog output using an analog input on an MCU.   A fingertip is then placed between the IR emitter and the detector and software running on the MCU filters out the electrical noise, parses the data and spits out the heart rate (at least that is the theory!).\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly.  Conveniently, the pins are marked on the back-side.  With the connector facing to the left, the top ‘S’ pin is the analog output, center pin is Vcc (3.3 or 5V) and the bottom ‘-‘ pin is ground.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eS \u003c\/b\u003e= Analog output, connects to analog input on uC\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCenter pin\u003c\/strong\u003e = Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘-‘ =\u003c\/strong\u003e Ground\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese modules are interesting in concept, but can be very difficult to get meaningful information out of and so are recommended for more advanced hobbyists or those that just enjoy a good challenge.   Let’s just say that if you find yourself in an ER, you don’t want to look down and see one of these clamped to your finger.\u003c\/p\u003e\n\u003cp\u003eThe reason is that the analog output of the device tends to be swamped with 60Hz noise from the home electrical system and the amount of change due to the heartbeat can be difficult to detect with all the ambient noise.  Here are some things that can be done to improve your odds of getting a reasonable reading.\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e As-shipped, the emitter LED and receiver are usually folded down for safe shipping.  The emitter LED needs to point at the receiver, so carefully bend the LED up and the receiver out so that the two are facing each other more or less with enough room to place the tip of a finger between them.  When running the setup with no finger in place, a lower number is better when when aligning the emitter\/receiver pair.  One of the pics shows the basic alignment that you are looking for.\u003c\/li\u003e\n\u003cli\u003eShield the sensor assembly from stray light as much as possible while taking measurements.  Turning lights off help to reduce the 60Hz flicker noise that can couple into the sensor.\u003c\/li\u003e\n\u003cli\u003eIf there is a question as to whether the IR LED is working, a cell phone camera will typically pick up the blue glow form the IR LED if it is operating.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cp\u003eHere is a scope capture of the module output in our setup.  The peaks within the electrical noise are the result of the heart rate being detected.  In this case, it is a little less than 60 beats per minute.  The challenge is to average the analog data to filter out the noise while detecting the peaks.\u003c\/p\u003e\n\u003cp\u003eA good hardware project would be to add some noise filter and amplification to cleanup this signal and make it more usable.  If you are looking for a more complete solution, checkout the PulseSensor down below that includes this type of noise filter and amplification as part of the module.\u003c\/p\u003e\n\u003cdiv id=\"attachment_4099\" class=\"wp-caption aligncenter\"\u003e\n\u003cimg decoding=\"async\" aria-describedby=\"caption-attachment-4099\" class=\"wp-image-4099 size-full entered lazyloaded\" src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture.jpg\" alt=\"\" width=\"705\" height=\"222\" data-lazy-srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture.jpg 705w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture-400x126.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture-300x94.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture-280x88.jpg 280w\" data-lazy-sizes=\"(max-width: 705px) 100vw, 705px\" data-lazy-src=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture.jpg\" data-ll-status=\"loaded\" sizes=\"(max-width: 705px) 100vw, 705px\" srcset=\"https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture.jpg 705w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture-400x126.jpg 400w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture-300x94.jpg 300w, https:\/\/protosupplies.com\/wp-content\/uploads\/2018\/01\/Heartbeat-Sensor-Module-Scope-Capture-280x88.jpg 280w\"\u003e\n\u003cp id=\"caption-attachment-4099\" class=\"wp-caption-text\"\u003eScope capture of module output showing a heart rate of about 60 Beats Per Minute superimposed over the electrical noise\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe simple program below can be used to monitor the analog output of the device to see how it basically reacts when a finger is inserted and to verify the output is good, but it makes no attempt to calculate the heart rate from the data.  Samples are taken 10 times a second but this is arbitrary.\u003c\/p\u003e\n\u003cp\u003eTo test the module, simply connect the sensor output to any analog input on the uC (we use A0 in the example below) and apply 5V and ground to the module – then insert finger.\u003c\/p\u003e\n\u003ch3\u003eHeartbeat Sensor Module Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eHeatbeat Detection Sensor Module test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code reading the output of the module. \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensorPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e A\u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Arbitrary analog pin to connect sensor output to\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eperiod\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e100\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Delay in milliseconds between readings \u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ the baud rate of the serial data\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n    \u003cspan\u003estatic\u003c\/span\u003e \u003cspan\u003edouble\u003c\/span\u003e \u003cspan\u003eoldValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ used for averaging.\u003c\/span\u003e\n    \n    \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003erawValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003esensorPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \u003cspan\u003e\/\/ Value read from the analog pin.  Will be between 0-1024\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003erawValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e \n    \u003cspan\u003edelay\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eperiod\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e            \n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eThis module is the same or similar to the KY-039\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"855\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Vcc\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 – 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt; 12mA (measured)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003e Operating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Wavelength\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e850-940nm (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e20 x 15mm (0.75 x 0.60″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683465289963,"sku":"","price":2.72,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Heartbeat-Sensor-Module-1.jpg?v=1723005234"},{"product_id":"humidity-and-temperature-sensor-module","title":"Humidity And Temperature Sensor Module","description":"\u003cp\u003e\u003cspan\u003eModule utilizes the DHT11 sensor assembly to report both humidity and temperature over a 1-wire interface.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Humidity and Temperature Sensor Module utilizes the DHT11 sensor assembly to report both humidity and temperature over a 1-wire interface.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHumidity and Temperature Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF HUMIDITY AND TEMPERATURE SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eReports humidity over range of 20% to 90%\u003c\/li\u003e\n\u003cli\u003eReports temperature over range of 0°C to 50°C\u003c\/li\u003e\n\u003cli\u003eUses 1-Wire interface\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V logic compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe sensor is capable of reading humidity in the range of 20-90%RH with an accuracy of +\/- 5%.  Temperature can be read in the range of 0-50°C with an accuracy of +\/- 2°C.\u003c\/p\u003e\n\u003cp\u003eThe sensor is written and read via a single digital pin and requires the use of a library for the communications.  With an Arduino, the DHTLib library can be downloaded from the Arduino site or GitHub.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThe module has a 3-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eS \u003c\/b\u003e= Signal pin connects to digital pin on uC\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCenter pin\u003c\/strong\u003e = Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eThird unmarked pin =\u003c\/strong\u003e Ground\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a commonly used module for basic humidity and temperature measurement.  Once up and running with a microcontroller, it is easy to test the module by breathing on the sensor.  That will increase both humidity and temperature temporarily.\u003c\/p\u003e\n\u003cp\u003eThe sensor can not be polled faster than once per second, otherwise data errors may occur.  If you get occasional bad readings (such as -999.00) try increasing the delay between reads.\u003c\/p\u003e\n\u003cp\u003eThere are other sensors in this line such as the DHT22.  In general, as the number gets higher, the measurement range or accuracy of the device increases (as does the price).  The DHT11 is a good sensor to get started with, but if you are looking for best performance, check out our DHT22 down below.  This is the lowest cost humidity sensor module that we sell.  We also have a similar DHT11 module that has a little nicer construction and comes with hookup wires that is available below as well.\u003c\/p\u003e\n\u003cp\u003eOnce the DHT library is installed, using the device is fairly simple as shown in the code snippet below.  In this case we are using pin 7, but any digital pin can be used.\u003c\/p\u003e\n\u003ch3\u003eHumidity And Temperature Sensor Module Test Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003e  DHT11 Temp \/ Humidity sensor module test\u003c\/span\u003e\n\n\u003cspan\u003e  Basic code for exercising the module.\u003c\/span\u003e\n\u003cspan\u003e  Requires DHT library to be installed\u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003e#include\u003c\/span\u003e \u003cspan\u003e\u0026lt;\u003c\/span\u003e\u003cspan\u003edht\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eh\u003c\/span\u003e\u003cspan\u003e\u0026gt;\u003c\/span\u003e          \u003cspan\u003e\/\/ Include the DHT library\u003c\/span\u003e\n\u003cspan\u003edht\u003c\/span\u003e \u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e                  \u003cspan\u003e\/\/ Create instance of DHT object\u003c\/span\u003e\n\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eDHT11_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e7\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Connects to sensor I\/O, use any digital pin\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003esensor\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e               \u003cspan\u003e\/\/ Dummy variable for sensor read\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Initialize serial comm\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\n\u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003esensor\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eread11\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT11_PIN\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Read sensor\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Temperature = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Printout returned results\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003etemperature\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" C\\t\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Humidity = \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eDHT\u003c\/span\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ehumidity\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\" %\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e2000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ 1 sec min read time, so using 2 to be safe\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eBasic humidity and temperature output verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eThis module is similar to or the same as the KY-015.\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"860\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.0 to 5.5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Humidity\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eRange\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e20% to 90%RH  (+\/- 5%RH)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Temperature\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e 0-50°C   (+\/- 2°C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e29mm x 14mm (1.14 x 0.55″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDatasheet\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003ca href=\"https:\/\/osepp.com\/wp-content\/uploads\/2015\/04\/DHT11-Technical-Data-Sheet-Translated-Version.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eDHT11\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683467485419,"sku":"","price":4.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Humidity-and-Temp-Sensor-2.jpg?v=1723005228"},{"product_id":"knock-sensor-module","title":"Knock Sensor Module","description":"\u003cp\u003e\u003cspan\u003eDetects when the module is tapped, hit or otherwise knocked about.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Knock Sensor Module detects when the module is tapped, hit, bumped or otherwise knocked about.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eKnock Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF KNOCK SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eOutputs a logic LOW when module is knocked\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis module incorporates a mechanical knock sensor consisting of a coiled spring held fixed in position on one end and free floating on the other end.  It is encased in a clear plastic housing.\u003c\/p\u003e\n\u003cp\u003eThe output of the module is normally pulled HIGH via an integrated pull-up resistor.  When the sensor is knocked or tapped, the free end of the spring moves and makes contact with the ground terminal and the output transitions LOW for a short time and then returns back to HIGH.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 3-pin header on the assembly for making connections.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 3 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘-‘\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCenter pin\u003c\/strong\u003e = Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eS =\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eSignal output, connects to digital input on MCU\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThis is a simple module that can be used to experiment with a number of applications that take some type of action when a physical knock or tap on the module is detected.\u003c\/p\u003e\n\u003cp\u003eThe module is not very sensitive and the sensitivity can depend on the module orientation.  Also be aware that the spring tends to create a very noisy output, so some type of debouncing in software will usually be required to get an output that is clean enough to be usable.  Finding use in practical applications is very limited.\u003c\/p\u003e\n\u003cp\u003eIf you are looking for a more capable sensor, the 801S Vibration Sensor Module below would be a better choice.\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003cem\u003eNone\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003eTechnical Specifications\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"840\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eVcc Range\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 – 5V (match to MCU)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLogic high (normal operation)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to Vcc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eLogic Low (knock detected)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003ePulled to Gnd\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e \u003cstrong\u003eDimensions\u003c\/strong\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e20mm x 15mm  (0.79 x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683473187051,"sku":"","price":2.37,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Knock-Sensor-Module-1.jpg?v=1723005223"}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/collections\/10001_508d6f9d-1dea-459d-baef-1e0e22bcddd7.jpg?v=1776061857","url":"https:\/\/keszooxstore.com\/collections\/proto-17-sensors.oembed","provider":"Keszoox","version":"1.0","type":"link"}