.. | ||
Exceptions | ||
PMS5003.cs | ||
PMS5003.csproj | ||
Pms5003Constants.cs | ||
Pms5003Data.cs | ||
readme.md | ||
Utils.cs |
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);
}
}
}
}
}