sensors: fix warning and clean up

Signed-off-by: Willi Ye <williye97@gmail.com>