I am reading a digitalpin into a boolean value and then I not it and it becomes an integer value.

`boolean sensorValue = digitalRead(2); // returns 0 or 1`

sensorValue =~ sensorValue; // Not operation and value becomes 255 or 254

I was hoping it would inverse the values, 0 would become 1 and 1 would become 0