Add serial port adapter for the Serial port located on the PI itself. https://pi4j.com/1.2/example/serial.html might be helpful.