The fact that it's dangling is not the problem but it could have been damaged if its been caught with a vacuum.the whole thermostat will require replacing which includes the thermocouple.A qualified person should really do the job
toptrish
April 2015