Log sensor history and expose it throught api