Schmitt Trigger.

Yes you can invert the signal like this, but if it is feeding into an arduino there is no point.