Hello and welcome to Just Answer
There are now various different sensors on the modern engine and any of these can cause your warning light ot come on. You will need to have the fault memory checked with diagnostic equipment to see which fault code has caused the light to come on. Once you have the fault code it will be a lot easier to diagnose your fault.
If you are able to come back with a fault code I will be more than happy to help you further with this problem