Skip to main content

Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor

FlameSensor
StatusStatus badge: working
Source codeGitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor

Code Example

FlameSensor flameSensor;

public override Task Initialize()
{
Resolver.Log.Info("Initialize...");

flameSensor = new FlameSensor(Device.Pins.D13);

flameSensor.FlameDetected += (s, e) =>
{
Resolver.Log.Info($"fire detected: {e}");
};

return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

FlameSensorMeadow Pin
GNDGND
VCC3.3V
RXD01
TXD00

Class FlameSensor

Represents a Flame Proximity Sensor

Assembly: FlameSensor.dll
View Source
Declaration
public class FlameSensor

Events

FlameDetected

Event triggered when flame source is detected

View Source
Declaration
public event EventHandler<bool> FlameDetected
Event Type

System.EventHandler<System.Boolean>