Add ifdef to compile libsensors