Problem sensor temperature and switch

I have a problem with a temperature sensor AM2302 connected to a sonoff basic to the gpio1 serial out, and made to recognize as SI7021, since the voice AM2302 on the tasmota is not present. As soon as the connections are made all OK, the temperature is read. But as soon as I activate the sonoff basic relay switch to operate a solenoid valve the temperature is no longer read, neither from the tasmota, nor from the home assistant. can someone help me!