Works when motor connected between A0 and ground!