Refactor libsensors