For anyone wanting to hook up the sensors. You’ll need a different header to use as an adapter since the one that comes with the motors don’t fit or align up to the VESC.
I ordered these http://www.ebay.com/itm/131589536983?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT, but you may want to get a 6-pin one so you don’t have to do what I did and remove one of the wires to fit directly into the 5v lead. However, I know that these fit well with the VESCs.
If you get the above you should remove the red and black leads and place the black one where the red one was. The red lead will go straight onto the VESC as shown. Once you place the JST header into the VESC, the flange on the header should secure the red lead as well. From there just solder the header on the other side (make sure it lines up with the motor’s JST).
One thing to note is that the motor’s JST header fits on sort of backwards of how you would expect, but is otherwise snug and secure. The missing pin between 5v and hall1 is the temp data which isn’t present on the OM5065.