sensor: add comments in the code