This part is a kind of semiconductor called 2N940.
Function of this product has Trans GP BJT NPN 12V 3-Pin TO-18 Box.
Manufacturers : New Jersey Semiconductor
Image and pinout :

Some of the text within the PDF file :
[ ... ]
2N940 PDF Datasheet Download
