what causes the trans temp lite to come on and go off on 1995 Dodge Ram 2500

it is a jasper trans

Asked by for the 1995 Dodge Ram 2500
Possibly faulty sensor(presuming it was in the trans already , not swapped) or wiring/connector damage. Was this symptom present with the previous trans? Was the cooler flushed thoroughly before the install? Got a scanner to monitor the sensors function?