sensors plugin: declare variables only if SENSORS_HAVE_READ