One of my Pico W sensors stops working from time to time. I've enabled the watchdog for auto-magic reboots, but even so, sometimes it just dies.
The sensor cable is about 50cm, at the end I have a DHT20 Temp and Humidity sensor (Köp DHT20 (AHT20) Temperatur- och Luftfuktighetssensor | sizable.se). I have pull-up resistors mounted at the sensor end of the cable.
I'm measuring the outside temperature with this sensor, so I'm mounting it on the underside of our master bedrooms windowsill. For mounting I'm using a blob of adhesive glue. When I "made it stick" to the underside of the windowsill I also bent the connectors on the sensor, so the middle data wire was shorted to ground - intermittently!