Optically pumped magnetometer to detect battery