Doing maths on HIGH and LOW returns from DigitalRead