A system is herein provided for enabling optical transmission of data between a sensor and a smart device, including a computing device running testing related code in a materials testing Application, wherein the device has a screen and a camera in proximity to the screen; a materials testing adaptor including a light source and a light receiver, wherein the adaptor is adapted to be placed at least partially over the computer device screen, and at least partially over the computer device camera; wherein the computer device communicates data optically to the testing adaptor using at least a part of the screen, and the testing adaptor communicates data optically to the computer device using the light source; and wherein the computer device receives data optically from the testing adaptor using the camera, and the testing adaptor receives data optically from the computer device using the light receiver.