I've been having a lot trouble with staying focused in my everyday activities, i mostly just end up daydreaming even while doing something

But this could be dangerous like when crossing the street, sometimes i just go on autopilot mode when walking from home to my local grocery store, most of the time I get reminded to be careful when I see the street and I stop and become aware and look both ways but sometimes I stay on autopilot mode and only look one way while crossing and delaying the look to the other side until I start crossing 

This just happened to me and there a car but I noticed it after I started walking down the street but thankfully it was far away so nothing happened but it could've been a bit closer and I could have gotten hit by it

So how do I stay more aware when going out of the house and crossing the street?