Sensor based on silicon microchannel resistor