I had the same thing happen on my civic because of a busted TPS plug (swap damaged). It fell off. I zip-tied it back on and it's fine now.
Testing 2 of the pins on it with a voltmeter should result in a .5 to 4.5v sweep as it's opened. If it ever reads 0v or "offline", it's toast. Haynes and HELMS covers this test.