analogRead DC Motor - Negative value
You can use full wave rectifier, but there is a significant voltage drop on it.

Another way is using Voltage divider to provide 1/2 Vcc to one of the motor terminals. But then you can measure just 1/2 Vcc in both directions (without another Voltage divider)

Something like: