Thanks for your response…..I am using the correct power adapter as rated by you 5v 2A, and the device doesn’t charge when turned off….It charges perfectly fine in TWRP …..On lineage Os 18.1 i noticed that when i keep my device connected to the charger the device won’t show any charging activity or notification but after the removal of the usb cable after sometime and a system reboot, the battery level is changed…For instance if its 20% it would be 35% etc after reboot….That means the device is charging in background but not showing any response to the charger… The data transfer process works fine in lineage OS 18.1 but no charging activity while on TWRP it shows charging activity with data transfer when connected to a computer….S5 SC-04F Docomo kltekdi Not Charging - Heart Rate Monitor
There are a bunch of changes for your device that should be included in kltekdi build 2021-05-07 if all goes well with the automated builder, maybe that will fix it: https://download.lineageos.org/kltekdi/changes/
Are you using a power adapter with an output of 5v, 2A? Did you try with an other USB cable?
If you turn off your S5 does it charge? If you use TWRP does it charge when in recovery & connected to the adapter or a computer?
I am quoting this from a S5 17.1 thread as haggertk or @Aljr13_ maybe will reply:
S5 Heart Rate Monitor & App Alternatives
There is a way here on XDA to enable the S5 heart rate sensor which I tried when I was running LineageOS 16.0 unofficial but after running 3 consecutive tests comparing the results with a stock Samsung 6.0.1 on S5 Mini G800H's heart sensor and those simple apps using the camera instead like Heart Rate Monitor by Meet Your Need Production and Heart Rate Monitor by REPS which gave exactly the same results I did not bother with it and the resource hungry S-Health after a clean install of LineageOS 16.0 official.
See this video which is exactly what happened on my S5 G900M: Galaxy S5 heart rate sensor vs ? pulse measuring app from the Play Store
I ran 3 tests on each S5 devices using S-Health + 3 tests on 7 heart beat apps each (21 tests total) and the apps & camera method is as reliable as Samsung's heart beat sensor on the S5.
S-Health is huge and wants a ton of permissions & that's why I dumped it as well as the required S-Health framework.
This said if your S5 is rooted with Magisk search for the module Heart Rate Sensor Enabler for SGS5. YMMV.