Faulty power connection (intermittent)

Device was losing its connection & finally would not connect to power at all. I replaced the cord/transformer a month ago. Last night got error message: "device not properly plugged in" (not exact wording!) but it is fully plugged in. Otherwise, the machine works. Any ideas?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0