<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Gas sensor - simple</title><link>https://community.element14.com/products/arduino/w/documents/1135/gas-sensor---simple</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Gas sensor - simple</title><link>https://community.element14.com/products/arduino/w/documents/1135/gas-sensor---simple</link><pubDate>Wed, 06 Oct 2021 20:44:15 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a68a1be5-58a8-4e03-a3e3-667cf7c8760f</guid><dc:creator>dixonselvan</dc:creator><comments>https://community.element14.com/products/arduino/w/documents/1135/gas-sensor---simple#comments</comments><description>Current Revision posted to Documents by dixonselvan on 10/6/2021 8:44:15 PM&lt;br /&gt;
&lt;p style="margin:0;"&gt;Code for serially obtaining information from the sensor connected to analog pin 0 of your Arduino.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;int sensor = A0;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;int sensorValue = 0;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;void setup(){&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;&amp;nbsp; Serial.begin(9600);&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;}&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;void loop(){&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;&amp;nbsp; sensorValue = analogRead(sensor);&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;&amp;nbsp; Serial.println(sensorValue); &lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;}&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>