Hcsr04.Distance Property

Definition

Gets the current distance, usual range from 2 cm to 400 cm.

public double Distance { get; }
public UnitsNet.Length Distance { get; }
[System.Device.Model.Telemetry(null, null)]
public UnitsNet.Length Distance { get; }
member this.Distance : double
member this.Distance : UnitsNet.Length
[<System.Device.Model.Telemetry(null, null)>]
member this.Distance : UnitsNet.Length
Public ReadOnly Property Distance As Double
Public ReadOnly Property Distance As Length

Property Value

UnitsNet.Length
Attributes

Applies to