Intelligent sensors for smart cylinders