added reduc code generator to reduc_sensor