sensor: fixed compiler warning in header.c