Compact temperature sensors with integrated electronics