How to detect lithium battery