[Help Needed Urgently] Arduino Uno with XM10 to control Fans or Small Lamp

Hi, I'm a student from Singapore. I brought two AM12U appliance module and 1 XM10 adapter from UK Automation and connect up the XM10 RJ11 port to my arduino uno. The examples on this link GitHub - DougC/arduino-x10: Creatrope's X10 send/receive library forked from google docs. is the code to communicate the arduino with XM10 there was no problem when compiling. I use the AM12U with the house code A to plug into my fan and the XM10 connect to my arduino uno but the fan could not turn on and off. But when i open the serial monitor it shows "On" and "Off" after the delay of 500. I also realize the the XM10 LED is blinking constantly. I'm using 220V - 240V at my country

Please Help

Thank you

Please do not cross-post. (Other thread removed.)