This post explains for the triac.
The Part Number is BT139.
The package is TO-220, SOT78 type
Manufacturers : NXP, Philips Semiconductor
See the preview image and the PDF file for more information.
Images
Description :
Glass passivated triacs in a plastic envelope, intended for use in applications requiring high bidirectional transient and blocking voltage capability and high thermal cycling performance. Typical applications include motor control, industrial and domestic lighting, heating and static switching.
Passivated triacs in a SOT78 plastic package. intended for use in applications requiring
high bidirectional transient and blocking voltage capability.
VDRM ≤ 600 V (BT139-600)
VDRM ≤ 800 V (BT139-800G)
VDRM ≤ 600 V (BT139-600F)
VDRM ≤ 800 V (BT139-800)
VDRM ≤ 800 V (BT139-800F
BT139 pinout
Applications
1. Motor control
2. Industrial and domestic lighting, heating and static switching