Well raise as big as villains want to keep calling. In general versus decent villains your sizing should not alter by hand strength, but by effective stacks and position.
Those recreational players calling with trash or small pockets to hit set without stack depth to do so will be ones to support your bankroll in long run. Most of time they are reluctant to fold that 94o in J95xx board and you can get three streets value with your top pair. Of course some of time they will hit that two pairs on flop or hit couple outer by the river, but that is part of the game and without those they would quit poker very quickly. After all poker is just game of luck right?
Some of my personal sizing tendencies:
In early blinds:
2.5bb from late position (BU, CO, HJ)
3bb from earlier position and SB
In 25/50 or later:
Mostly minraising and possibly using bit bigger sizing from SB.
When there are limpers adding 1bb or so per limper. In bigger blinds like 50/100 I might also iso raise with 2.5bb versus one limper.
Those are for mid/high stakes games where players are usually not as call happy. Some people also use minraise from beginning in higher stakes, but personally I dont like that as it so much easier generate 3-4way pots. One of reasons why I tend to 3bet bit more hands versus such opens compared to 3bb open.
3bets should be smaller from position compared to OOP situations. E.g. I prefer around 2.5x IP and 3x OOP versus just open raise. Versus fishy villains those can be easily larger as they like to continue with wide range and your range for 3betting is likely more value heavy than versus decent opponent.