Update Mixin+sensor.c

Improvements for sensors function