Check engine light on 1990 Chevrolet Celebrity

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
Whenever my check engine light comes on the speedometer quits working and vice versa checked all the codes fixed all. Now light stays on all the time but the only code that flashes is 12.
(1) Answer
Sounds like a possible vehicle speed sensor issue. This would affect speedometer operation and set a check engine light.

Have the sensor performance checked and then check the wiring at the sensor as well as the sensor itself.