Automatic transmissions are mysterious marvels of the Industrial Revolution. Every mechanical, hydraulic, electrical, vacuum-operated, and electronic component of a modern-day automatic transmission ...
Problems don't fix themselves, you had a problem and I'm guessing you still have it after replacing the faulty sensor. I would have the car checked again in an effort to trace the cause of the problem ...