Optical read-out of motion is widely used in sensing applications. Recent developments in micro- and nano-optomechanical systems have given rise to on-chip mechanical sensing platforms, potentially leading to compact and integrated optical motion sensors. However, these systems typically exploit narrow spectral resonances and therefore require tuneable lasers with narrow linewidth and low spectral noise, which makes the integration of the read-out extremely challenging. Here, we report a step towards the practical application of nanomechanical sensors, by presenting a sensor with ultrawide (∼80 nm) optical bandwidth. It is based on a nanomechanical, three-dimensional directional coupler with integrated dual-channel waveguide photodiodes, and displays small displacement imprecision of only 45 fm/Hz1/2 as well as large dynamic range (>30 nm). The broad optical bandwidth releases the need for a tuneable laser and the on-chip photocurrent read-out replaces the external detector, opening the way to fully-integrated nanomechanical sensors.