The treadmill is basically not close to the body, so this test is not very accurate.
If you want to measure your heart rate, you can usually use your mobile phone's watch or bracelet. These are closer, that is, your pulse, and it is easier to measure your heart rate.