What sensor being bad or out would make a 2000 Malibu V6 start using lots more gas than it used to?

with my car it was the camshaft position sensor after replacing it i get very good milage now.