Sensor 3.3 V to 5 V pull up schematic
That's not how you'd do a level shifting for logical signals. You'd need something active if you want to actually increase the signal level.

Single transistor level up shifter has multiple recommendations on how to do that.

Personally, the single logic gate solution is probably by far the most robust one, and really easy, since you need no additional components.