Battery component with sensor and UI working