Linear actuator. Monitor end switch with arduino
You need a pull-up resistor from the output to VCC. 

10k ohm will probably work just fine.

Perhaps you can use the internal pullups in the Arduino inputs.