Along with a good wire connection to the flame sensor, make sure the flame sensor has a good, clean ground connection to the burner. That ground is often a tab protruding from the from the flame sensor mount. It must contact the burner when you reinstall it.
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.