Resonant Thermoelectric Nanophotonics: Applications In Spectral And Thermal Sensing