Motors causing my Arduino to behave strangely

my voltage reader pin is still reading a voltage

It is floating. Always connect the grounds together.