All you’ve really gotta do in order to be physically sober is NOT get high, drunk, or generally partake in things that alter your mind or body.
No, the real work when I got clean was examining all the things that made me need to escape my life in the first place: