Not entirely sure what you are trying to achieve – if you used an ESP12 you could have an analogue pin anyway and send the signal directly.
If you are getting a serial message there are a few Rules which may help
Rules - Tasmota (JSON via Serial Bridge) shows how to read a serial input and send an MQTT message.
Regards
Phil K
Sent from Mail for Windows
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/f453d220-de52-4abe-8aae-ef93139feaa2n%40googlegroups.com.