how to control pnp transistor with arduino?

Hello! im new to electronics and need some advice. im working on a project that involves arduino nano and now i would need to control a pnp transistor with arduinos digital pin. My concern is that i want to use pull up resistor for the base and i started thinking that it would let 20 volts get in touch with arduinos digital pin, will this hurt my arduino? if so, should i use npn transistor to control pnp or is there any smarter solutions?

I found this helpful

thanks! very detailed information :slight_smile: