[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-719870-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-719870-en":130,"doc-similar-719870":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","lm35-linear-temperature-sensor-sku-dfr0023-arduino-and-micropython-tutorial","LM35 Linear Temperature Sensor SKU DFR0023 - Arduino and Micropython Tutorial","","DFRobot LM35 linear temperature sensor (SKU DFR0023) is a semiconductor-based solution for detecting ambient temperature. It is built on the LM35 chip and outputs a voltage proportional to temperature with 10 mV/°C sensitivity. The measurable range is 0–150°C with ±1°C precision, powered by 3.3–5.0V. The material provides sensor specifications, connection guidance, and sample code for Arduino and Micropython to read analog values and convert them to Celsius.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/lm35-linear-temperature-sensor-sku-dfr0023-arduino-and-micropython-tutorial/719870/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/lm35-linear-temperature-sensor-sku-dfr0023-arduino-and-micropython-tutorial/719870.png","ImageObject",300,407,{"name":42,"@type":43},"Aria Callaghan","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-24","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the working principle and output behavior of the LM35 sensor?","Question",{"text":63,"@type":64},"The LM35 uses a semiconductor chip and provides an output voltage proportional to temperature, with a sensitivity of 10 mV/°C. It is used to detect ambient temperature.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What are the key specifications for the DFRobot LM35 (DFR0023)?",{"text":68,"@type":64},"It supports 3.3–5.0V supply voltage, measures 0–150°C, has precision ±1°C, sensitivity 10 mV/°C, connector type PH2.0-3P, and dimensions 30*22 mm.",{"name":70,"@type":61,"acceptedAnswer":71},"How can the sensor be read using Arduino or Micropython?",{"text":72,"@type":64},"The provided Arduino sample reads analog input on A0, converts the analog value into a Celsius temperature using the stated scaling, and prints the result. The Micropython sample uses ADC to read an analog pin, converts the ADC value to millivolts, and prints temperature in °C.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},719870,1795032663,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":55,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":80,"read_time":143,"preview_page_count":33,"preview_urls":144},962084926284,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","SKU:DFR0023 ([https://www.dfrobot.com/product-76.html](https://www.dfrobot.com/product-76.html))  \n( [https://www.dfrobot.com/product-](https://www.dfrobot.com/product-)  \n76.html)  \nIntroduction  \nThe DFRobot LM35 Linear Temperature Sensor ([https://www.dfrobot.com/product-](https://www.dfrobot.com/product-)[ ](https://www.dfrobot.com/product-)[76.html](76.html)) is based on the semiconductor LM35 temperature sensor. It can be used to detect ambient temperature. This sensor is produced by National Semiconductor Corporation and offers a functional range between 0 to 150 ℃ . The sensitivity is 10mV/℃ . The output voltage is proportional to the temperature. It is commonly used as a temperature measurement sensors. It includes thermocouples, platinum resistance, thermal resistance and temperature semiconductor chips, which are commonly used in high temperature measurement thermocouples. Platinum resistance temperature modules are used in measurements of 800 degrees Celsius, while the thermal resistance and semiconductor temperature sensor suitable for measuring the temperature of 100-200 degrees or below. In this type of application the semiconductor temperature sensor has good linearity and high sensitivity. The LM35 linear temperature sensor and sensor-specific expansion of Arduino board ( [https://www.dfrobot.com/category-104.html](https://www.dfrobot.com/category-104.html)), can allow for quick and easy plug and play and reliable data.  \n[https://wiki.dfrobot.com/DFRobot](https://wiki.dfrobot.com/DFRobot) LM35 Linear Temperature Sensor SKU DFR0023 1/5  \n7/7/24 , 7:31 PM DFRobot LM35 Linear Temperature Sensor SKU DFR0023 -DFRobot  \nSpecification  \n Sensor Chip Model: LM35  \n Supply Voltage: 3.3~5.0V  \n Sensor Chip Sensitivity: 10mV/℃  \n Measuring Range: 0~150℃  \n Precision: ±1℃  \n Connector Type: PH2.0-3P  \n Dimension: 30*22 mm  \n[https://wiki.dfrobot.com/DFRobot](https://wiki.dfrobot.com/DFRobot) LM35 Linear Temperature Sensor SKU DFR0023 2/5  \nTutorial  \nConnection Diagram  \n[https://wiki.dfrobot.com/DFRobot](https://wiki.dfrobot.com/DFRobot) LM35 Linear Temperature Sensor SKU DFR0023 3/5  \n7/7/24 , 7:31 PM DFRobot LM35 Linear Temperature Sensor SKU DFR0023 -DFRobot  \nSample Code  \nFor Arduino  \nvoid setup(){  \nSerial.begin (9600) ;//Set Baud Rate to 9600 b ps}  \nvoid loop(){  \nu int16_t val ;  \ndouble d at;  \nval=analogRead (A0) ;//Connect LM35 on Analog 0  \ndat = (double ) val * ( 5/ 10 .24) ;  \nSerial.print( \"Tep: \" ) ; //Display the temperature on Serial monitor Serial.print(dat) ;  \nSerial.println ( \"C \" ) ;  \ndelay( 500) ;}  \nFor Micropython  \nfrom machine import ADC , Pin import time  \nadc0=ADC( Pin ( 36)) while True :  \n[val=adc0.read](val=adc0.read)() dat=(val/4096) * 3300/ 10 .24 print( \"dat=\",dat , \"C \" ) time .sleep( 1 )  \n[https://wiki.dfrobot.com/DFRobot](https://wiki.dfrobot.com/DFRobot) LM35 Linear Temperature Sensor SKU DFR0023 4/5  \n7/7/24 , 7:31 PM DFRobot LM35 Linear Temperature Sensor SKU DFR0023 -DFRobot  \nFAQ  \nMore question and cool idea,visit DFRobot Forum  \n( [https://www.dfrobot.com/index.php?route=DFblog/blogs](https://www.dfrobot.com/index.php?route=DFblog/blogs))  \nMore Documents  \n Schematic  \n( [https://github.com/DFRobot/Wiki/raw/master/DFR0023/res/DFR0023%20](https://github.com/DFRobot/Wiki/raw/master/DFR0023/res/DFR0023%20)(V4.0)%20Schematic.pdf)  \n Layout with dimension  \n( [https://github.com/DFRobot/Wiki/raw/master/DFR0023/res/DFR0023%20](https://github.com/DFRobot/Wiki/raw/master/DFR0023/res/DFR0023%20)(V4.0)%20Layout%20with%20dimension.pdf)  \n LM35 Datasheet  \n( [https://www.dfrobot.com/image/data/DFR0023/DFR0023_Datasheet.pdf](https://www.dfrobot.com/image/data/DFR0023/DFR0023_Datasheet.pdf))  \n[https://wiki.dfrobot.com/DFRobot](https://wiki.dfrobot.com/DFRobot) LM35 Linear Temperature Sensor SKU DFR0023 5/5","cbCail8GytbNMqGT","https://ap.wps.com/l/cbCail8GytbNMqGT","pdf",320946,"English","# Introduction\n# Specification\n# Tutorial\n## Connection Diagram\n## Sample Code\n# FAQ\n# More Documents","[{\"question\":\"What is the working principle and output behavior of the LM35 sensor?\",\"answer\":\"The LM35 uses a semiconductor chip and provides an output voltage proportional to temperature, with a sensitivity of 10 mV/°C. It is used to detect ambient temperature.\"},{\"question\":\"What are the key specifications for the DFRobot LM35 (DFR0023)?\",\"answer\":\"It supports 3.3–5.0V supply voltage, measures 0–150°C, has precision ±1°C, sensitivity 10 mV/°C, connector type PH2.0-3P, and dimensions 30*22 mm.\"},{\"question\":\"How can the sensor be read using Arduino or Micropython?\",\"answer\":\"The provided Arduino sample reads analog input on A0, converts the analog value into a Celsius temperature using the stated scaling, and prints the result. The Micropython sample uses ADC to read an analog pin, converts the ADC value to millivolts, and prints temperature in °C.\"}]","LM35 Linear Temperature Sensor SKU DFR0023 - Arduino and Micropython Tutorial | PDF",13,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f650d31ad9f1d81813ae6b36e817c378.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f4957680e190c98732739906c80bf0db.webp",982,1270,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0e033af5d3f50786a97ea93af24293c3.webp",981,1269,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/bb0fea8af71219a8764257adbabdcfc0.webp",980,1268,{"list":162,"token":11},[163,169,175,181,187,193,199,206,211,217],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":101,"category_name":29,"create_tm":168},719871,"LM35 Temperature Sensor - TS2151 - Product Details - Features and Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024373915/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=bPlKY0bkigPHBg41ocuHHhWZGas%3D","lm35-temperature-sensor-ts2151-product-details-features-and-applications",1795032668,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":55,"category_name":29,"create_tm":174},719875,"LM35 Precision Centigrade Temperature Sensors - Datasheet - Features and Electrical Characteristics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023663651/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=1SWsDVwggI9%2FnuPw36kGN%2B%2Bi2qk%3D","lm35-precision-centigrade-temperature-sensors-datasheet-features-and-electrical-characteristics",1795032677,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":30,"category_name":29,"create_tm":180},681643,"LM35 Precision Centigrade Temperature Sensors - 3 Description","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999132057/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=5EdeoMJbi1OmMCzuuanBlcLEMIg%3D","lm35-precision-centigrade-temperature-sensors-section-3-description",1793951566,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":110,"category_name":29,"create_tm":186},670186,"Arduino Nano ESP32 Datasheet - Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988689666/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=1NX59xjvUD69UsQLlBXHkJebL5g%3D","arduino-nano-esp32-datasheet-specifications",1793567535,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":55,"category_name":29,"create_tm":192},720478,"BMP280 Barometric Pressure & Temperature Module - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396861/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=Pf30fqVqZoJ%2FJetFlGbGOxRKdGc%3D","bmp280-barometric-pressure-temperature-module-user-guide",1795037495,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":101,"category_name":29,"create_tm":198},691513,"MLX90640 32x24 IR array - Short form Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002678701/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=%2BxxDYBssWUTkpuN7SKqTkiUykAY%3D","mlx90640-32x24-ir-array-short-form-datasheet",1794174816,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":29,"create_tm":205},399642,"MEC172x - Operating Conditions, Low Power Modes, Embedded Controller Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919646891/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=z29eHD1RZgeKmy%2FnCTa11AXV9N0%3D","mec172x-operating-conditions-low-power-modes-embedded-controller-features",11,1790499421,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":33,"category_name":29,"create_tm":168},719872,"LM35CZ and LM35DZ Temperature Sensor Datasheet - Features and Electrical Characteristics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023663641/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=RxPYN9j7oN7lMpTX43ycyzjPxN4%3D","lm35cz-and-lm35dz-temperature-sensor-datasheet-features-and-electrical-characteristics",{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":101,"category_name":29,"create_tm":216},720593,"TMP35/TMP36/TMP37 - Low Voltage Temperature Sensors - Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675868/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=PvzM65IaOTXn38mNMPisBOTlFJw%3D","tmp35tmp36tmp37-low-voltage-temperature-sensors-specifications",1795038371,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":101,"category_name":29,"create_tm":222},720441,"DHT11 Temperature and Humidity Sensor","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=xLdMYPSn32zvILSXuPvn6yTGty8%3D","dht11-temperature-and-humidity-sensor",1795037380]