So im working on a project and Im using a diagram I found on this forum but I want to alter it a little. The transistor on the right is a 2n2222 npn transistor. I want to change the 9v to 24v. Ive been looking up datasheets on it and I think it will do what I want but I wanted to get a second opinion just in case because Im still new. Will this output 24v is my first question? And will the transistor work properly with the increased voltage?