code for the strain gauges (not tested)