Library for writing sensor drivers with a unified interface