transmission takes off in 2nd and won't shift into overdrive 2.5 engine
Have you checked your transmission fluid level?
could it be shift solenoid bad
Sensor issue then. Randell is correct to suspect a bad sensor.
Looking for a Used Sonata in your area?
CarGurus has 48,644 nationwide Sonata listings starting at $700.
Search Hyundai Sonata Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Hyundai Sonata Experts