            Err(Error::Interface{msg:format!("channel ensor not found")})
        }else{
            Sensor::open(path.as_path())
        }
    }
    pub fn value(&self) -> Result<f32> {
        let value = fs::read_to_string(self.path.join("value"))?.parse::<f32>()?;
        Ok(value)
    }
}
