How to Wemos Mini D1 with multiple sensors

i have a wemos mini d1 and will connect 3 magnetic reed switches using GPIO0 GPIO4 and GPIO5. i have set it as a Generic Module with GPIO5 as Switch2, GPIO4 as Switch3 and GPIO0 as Switch4, all of them will send individual SwitchTopics when triggered. Can i still add an ultrasonic sensor to it and how do i configure it in my wemos configuration page? Thank you.

What firmware are you using? Tasmota?

yes i flashed it with Tasmota.bin

Take a look at this:

thank you i’ll check it out.

EDIT:
new question:
can i add several ultrasonic sensors to GPIO12 and GPIO14 but get separate messages from each sensors?

Seems unlikely.