Find the clearance your printer needs for parts that fit.
Parts that fit together, like lids, knobs and hinges, need a small gap between them. How much depends on your printer, nozzle and filament. This test is a peg and a row of holes that grow in small steps.
Print it, try the peg in each hole, and note the smallest hole it fits: that gap is your printer's clearance.
Usually 0.2 to 0.4 mm for a sliding fit. A tight press fit needs 0 to 0.1 mm.
Raise the gap the holes grow by, or the tightest gap, and print again.
A little: small holes come out relatively tighter. Make the peg similar to the parts you plan to print.

Any hole, any outside diameter, any height.

Grip knobs with a pocket for an M3 to M10 nut or bolt head.

Reducers between any two diameters.

Funnels with the exact spout you need.

Hooks sized to your rail, branch or shelf.

Clip-in combs that keep charging cables in place.

Scoops for an exact number of millilitres.

Two-leaf hinges in any width, with screw holes and a pin.