The VoltageSensor is constructed unconditionally from entry.pins[0]. If the pin is still PinDisabled (255) or otherwise unset, the handler will call pinMode(255, INPUT) / analogRead(255) and emit bogus telemetry. Consider mirroring the GPS sensor pattern: if the required pin is PinDisabled, skip creating the sensor (and optionally raise a config warning).
The VoltageSensor is constructed unconditionally from entry.pins[0]. If the pin is still PinDisabled (255) or otherwise unset, the handler will call pinMode(255, INPUT) / analogRead(255) and emit bogus telemetry. Consider mirroring the GPS sensor pattern: if the required pin is PinDisabled, skip creating the sensor (and optionally raise a config warning).