Update Mixin+sensor.c

finishing sensor part