The Needham software firm PTC Inc., which specializes in the Internet of Things, has agreed to buy a Maine company that will help it expand its business into factory and industrial settings. PTC will ...