As riding through deep puddles or floodwater is risky for your bike's electrical components, try your best to steer clear. If necessary, dismount and walk it across.