Now this thing is cool! It is basically a device that you plug into your cars computer port and it sends information over bluetooth to your iPhone. This little device can send error codes such as the one that triggered your check engine light.
It will also give you information about your driving such as rapid acceleration and rough braking.
The device costs $99 and you can check it out here