I'm trying to measure my Raspberry Pi's temperature using vcgencmd measure_temp
but it only works whenever it feels like it:
pi@raspberrypi ~ $ sudo /opt/vc/bin/vcgencmd measure_temp
vc_gencmd_send returned -1
vchi_msg_dequeue -> -1(22)
Any idea what might be going on? It just hangs there, I need to use Ctrl+C to get out of there.