it all depends. if a component is dirty, cleaning it may solve the problem. for any electronic sensors use electric parts cleaner. for any exhaust sensors, EGR, o2 sensors, etc, i use brake cleaner.
sensors are electronic parts though, they dont need an excuse to go bad. if a butterfly flaps it wings in africa, there goes your TPS!!