toDouble

Maps DigitalState to a numeric value for graphing: ON → 1.0, OFF → 0.0.