GPIO on base of transistor not scaling linearly
The correct way was to edit your previous question but we're all here now ...



Figure 1. 2N2222 pinout.



Figure 2. You have the collector resistor connected to the emitter at (1). The base looks OK at (2). You have the collector grounded at (3).

Swap the emitter and collector wiring by turning the transistor 180°.