Check engine light

My check engine light is on. It has come on 3 times before with a sensor reading. This time it came on and has not yet gone off for the last 7 days.What should I do ?