C# library for interfacing with the PMS5003 Particulate Matter Sensor
.idea/.idea.PMS5003/.idea | ||
PMS5003 | ||
PMS5003Tests | ||
.gitignore | ||
LICENSE | ||
PMS5003.sln | ||
PMS5003.sln.DotSettings.user | ||
readme.md |
Introduction
C# Library for interfacing with the PMS5003 Particulate Matter Sensor.
For wiring the Sensor consult the datasheet.
Example
using System;
using System.Threading;
namespace Application
{
class Example
{
static void Main(string[] args)
{
var pms = new Pms5003();
while (true)
{
try
{
var data = pms.ReadData();
Console.WriteLine(data);
Thread.Sleep(2000);
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
}
}
}